CRM-12678
authorDonald A. Lobo <lobo@civicrm.org>
Wed, 22 May 2013 15:53:55 +0000 (08:53 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Wed, 22 May 2013 15:53:55 +0000 (08:53 -0700)
----------------------------------------
* CRM-12678: PseudoConstant.php on line 122 returns value not reference
  http://issues.civicrm.org/jira/browse/CRM-12678

CRM/Core/PseudoConstant.php

index 96c5328f15aec24a71a031043110d050ca7e3f63..790124c59cb7fa807672554f58d7bd200cc58c2c 100644 (file)
@@ -1008,7 +1008,7 @@ WHERE  id = %1";
         return self::$country[$id];
       }
       else {
-        return NULL;
+        return CRM_Core_DAO::$_nullObject;
       }
     }
     return self::$country;
@@ -1038,7 +1038,7 @@ WHERE  id = %1";
         return self::$countryIsoCode[$id];
       }
       else {
-        return NULL;
+        return CRM_Core_DAO::$_nullObject;
       }
     }
     return self::$countryIsoCode;
@@ -1605,7 +1605,7 @@ WHERE  id = %1";
         return self::$county[$id];
       }
       else {
-        return NULL;
+        return CRM_Core_DAO::$_nullObject;
       }
     }
     return self::$county;
@@ -1710,7 +1710,7 @@ WHERE  id = %1";
         return self::$worldRegions[$id];
       }
       else {
-        return NULL;
+        return CRM_Core_DAO::$_nullObject;
       }
     }
 
@@ -1946,7 +1946,7 @@ ORDER BY name";
    */
   static function countryIDForStateID($stateID) {
     if (empty($stateID)) {
-      return NULL;
+      return CRM_Core_DAO::$_nullObject;
     }
 
     $query = "