X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FUtils%2FGeocode%2FYahoo.php;h=f5b22f92bd2581c4e3add68f9a2ec218e7bca310;hb=61fa74bdc01c239e020556bd948f4acc3b8332e4;hp=fc9f64c4974ade95792475e0473043dc8868e1aa;hpb=aa0b568b0563900aa6ddc792014cc17af2c3fc90;p=civicrm-core.git diff --git a/CRM/Utils/Geocode/Yahoo.php b/CRM/Utils/Geocode/Yahoo.php index fc9f64c497..f5b22f92bd 100644 --- a/CRM/Utils/Geocode/Yahoo.php +++ b/CRM/Utils/Geocode/Yahoo.php @@ -1,9 +1,9 @@ mapAPIKey); @@ -172,7 +172,7 @@ class CRM_Utils_Geocode_Yahoo { if (CRM_Utils_System::isUserLoggedIn()) { $msg = ts('The Yahoo Geocoding system returned a different postal code (%1) than the one you entered (%2). If you want the Yahoo value, please delete the current postal code and save again.', array( 1 => $ret['postal'], - 2 => $current_pc_suffix ? "$current_pc-$current_pc_suffix" : $current_pc + 2 => $current_pc_suffix ? "$current_pc-$current_pc_suffix" : $current_pc, )); CRM_Core_Session::setStatus($msg, ts('Postal Code Mismatch'), 'error'); @@ -185,11 +185,11 @@ class CRM_Utils_Geocode_Yahoo { $values['postal_code'] = $ret['postal']; /* the following logic to split the string was borrowed from - CRM/Core/BAO/Address.php -- CRM_Core_BAO_Address::fixAddress. - This is actually the function that calls the geocoding - script to begin with, but the postal code business takes - place before geocoding gets called. - */ + CRM/Core/BAO/Address.php -- CRM_Core_BAO_Address::fixAddress. + This is actually the function that calls the geocoding + script to begin with, but the postal code business takes + place before geocoding gets called. + */ if (preg_match('/^(\d{4,5})[+-](\d{4})$/', $ret['postal'], @@ -208,4 +208,5 @@ class CRM_Utils_Geocode_Yahoo { $values['geo_code_1'] = $values['geo_code_2'] = 'null'; return FALSE; } + }