CRM_Core_BAO_CustomGroup::hasReachedMaxLimit - Fix warning
authorTim Otten <totten@civicrm.org>
Wed, 22 May 2013 20:24:05 +0000 (16:24 -0400)
committerTim Otten <totten@civicrm.org>
Wed, 22 May 2013 20:24:05 +0000 (16:24 -0400)
CRM/Core/BAO/CustomGroup.php

index 11b30806f0898cac8bb9eccd63da194c7944404f..94b90e12b7cef7442547567a56e31fa624a606c4 100644 (file)
@@ -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;