From 534a5e67949573765a3e65593e98ad35f45e47cc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 22 May 2013 16:24:05 -0400 Subject: [PATCH] CRM_Core_BAO_CustomGroup::hasReachedMaxLimit - Fix warning --- CRM/Core/BAO/CustomGroup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/CustomGroup.php b/CRM/Core/BAO/CustomGroup.php index 11b30806f0..94b90e12b7 100644 --- a/CRM/Core/BAO/CustomGroup.php +++ b/CRM/Core/BAO/CustomGroup.php @@ -2064,7 +2064,7 @@ SELECT civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT return $objTypes; } - function hasReachedMaxLimit($customGroupId, $entityId) { + static function hasReachedMaxLimit($customGroupId, $entityId) { //check whether the group is multiple $isMultiple = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $customGroupId, 'is_multiple'); $isMultiple = ($isMultiple) ? TRUE : FALSE; -- 2.25.1