From 7cdc9e9fc9aced3925194e18b360b14b780c250c Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Wed, 22 May 2013 08:53:55 -0700 Subject: [PATCH] CRM-12678 ---------------------------------------- * CRM-12678: PseudoConstant.php on line 122 returns value not reference http://issues.civicrm.org/jira/browse/CRM-12678 --- CRM/Core/PseudoConstant.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 96c5328f15..790124c59c 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -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 = " -- 2.25.1