From: Donald A. Lobo Date: Wed, 1 May 2013 18:24:45 +0000 (-0700) Subject: fix PHP 5.4 static warnings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3fb36592db403ae20e897f1fdb5a3ba41411b68c;p=civicrm-core.git fix PHP 5.4 static warnings --- diff --git a/CRM/Contribute/PseudoConstant.php b/CRM/Contribute/PseudoConstant.php index fe69660b55..9b8302e613 100644 --- a/CRM/Contribute/PseudoConstant.php +++ b/CRM/Contribute/PseudoConstant.php @@ -184,7 +184,7 @@ class CRM_Contribute_PseudoConstant extends CRM_Core_PseudoConstant { * @param boolean $name pseudoconstant to be flushed * */ - public static function flush($name) { + public static function flush($name = 'cache') { if (isset(self::$$name)) { self::$$name = NULL; } diff --git a/CRM/Event/PseudoConstant.php b/CRM/Event/PseudoConstant.php index cd7a5ef13a..a38cfaaba6 100644 --- a/CRM/Event/PseudoConstant.php +++ b/CRM/Event/PseudoConstant.php @@ -275,7 +275,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant { * @param boolean $name pseudoconstant to be flushed * */ - public static function flush($name) { + public static function flush($name = 'cache') { if (isset(self::$$name)) { self::$$name = NULL; } diff --git a/CRM/Grant/PseudoConstant.php b/CRM/Grant/PseudoConstant.php index 951ac2d15d..baa84dfca9 100644 --- a/CRM/Grant/PseudoConstant.php +++ b/CRM/Grant/PseudoConstant.php @@ -107,7 +107,7 @@ class CRM_Grant_PseudoConstant extends CRM_Core_PseudoConstant { * @param boolean $name pseudoconstant to be flushed * */ - public static function flush($name) { + public static function flush($name = 'cache') { if (isset(self::$$name)) { self::$$name = NULL; } diff --git a/CRM/Member/PseudoConstant.php b/CRM/Member/PseudoConstant.php index 8b50539645..b9fd5a5b18 100644 --- a/CRM/Member/PseudoConstant.php +++ b/CRM/Member/PseudoConstant.php @@ -125,7 +125,7 @@ class CRM_Member_PseudoConstant extends CRM_Core_PseudoConstant { * @param boolean $name pseudoconstant to be flushed * */ - public static function flush($name) { + public static function flush($name = 'cache') { if (isset(self::$$name)) { self::$$name = NULL; }