From 1f5588bc8cca55106430d3e758349f62e9b13759 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 28 Aug 2014 15:48:55 +0100 Subject: [PATCH] String fixes --- CRM/Admin/Form/Preferences/Address.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CRM/Admin/Form/Preferences/Address.php b/CRM/Admin/Form/Preferences/Address.php index 1f6b0cb80d..546e5dbb36 100644 --- a/CRM/Admin/Form/Preferences/Address.php +++ b/CRM/Admin/Form/Preferences/Address.php @@ -206,13 +206,9 @@ class CRM_Admin_Form_Preferences_Address extends CRM_Admin_Form_Preferences { !empty($this->_params['address_options'][$key]) ) { // print a status message to the user if county table seems small - $sql = " -SELECT count(*) -FROM civicrm_county -"; - $countyCount = CRM_Core_DAO::singleValueQuery($sql); + $countyCount = CRM_Core_DAO::singleValueQuery("SELECT count(*) FROM civicrm_county"); if ($countyCount < 10) { - CRM_Core_Session::setStatus(ts('You have enabled the County option. Please ensure you populate the county table in your CiviCRM Database. You can find extensions to populate counties in the ') . CRM_Utils_System::href(ts('CiviCRM Extensions Directory'), 'civicrm/admin/extensions', array('reset' => 1), TRUE, 'extensions-addnew'), + CRM_Core_Session::setStatus(ts('You have enabled the County option. Please ensure you populate the county table in your CiviCRM Database. You can find extensions to populate counties in the CiviCRM Extensions Directory.', array(1 => 'href="' . CRM_Utils_System::url('civicrm/admin/extensions', array('reset' => 1), TRUE, 'extensions-addnew') . '"')), ts('Populate counties'), "info" ); -- 2.25.1