CRM-15146
authorJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Wed, 20 Aug 2014 04:16:47 +0000 (09:46 +0530)
committerJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Wed, 20 Aug 2014 04:16:47 +0000 (09:46 +0530)
CRM/Utils/Geocode/Yahoo.php

index 99b4a3ba2ad1bad7d7e19f063ab83db60a1cd045..efe2b49c40bdd70e5f974b2d011054f83ae1a41f 100644 (file)
@@ -157,7 +157,7 @@ class CRM_Utils_Geocode_Yahoo {
       $values['geo_code_1'] = $ret['latitude'];
       $values['geo_code_2'] = $ret['longitude'];
 
-      if ($ret['postal']) {
+      if (!empty($ret['postal'])) {
         $current_pc = CRM_Utils_Array::value('postal_code', $values);
         $skip_postal = FALSE;