From 3fb36592db403ae20e897f1fdb5a3ba41411b68c Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Wed, 1 May 2013 11:24:45 -0700 Subject: [PATCH] fix PHP 5.4 static warnings --- CRM/Contribute/PseudoConstant.php | 2 +- CRM/Event/PseudoConstant.php | 2 +- CRM/Grant/PseudoConstant.php | 2 +- CRM/Member/PseudoConstant.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.25.1