From: Eileen McNaughton Date: Tue, 28 Jan 2014 01:23:22 +0000 (+1300) Subject: CRM-14139 ajax grouplist call - fixes notices on non-static functions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b808cd256548fd89e2b631510b27fbc7c27a3a74;p=civicrm-core.git CRM-14139 ajax grouplist call - fixes notices on non-static functions ---------------------------------------- * CRM-14139: Static methods called non-statically http://issues.civicrm.org/jira/browse/CRM-14139 --- diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 9a18004208..a18e3d99b7 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -676,7 +676,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { * @return array $groupList associated array of group list * @access public */ - public function getGroupListSelector(&$params) { + static public function getGroupListSelector(&$params) { // format the params $params['offset'] = ($params['page'] - 1) * $params['rp']; $params['rowCount'] = $params['rp']; @@ -1043,7 +1043,7 @@ WHERE {$whereClause}"; return CRM_Core_DAO::singleValueQuery($query, $params); } - function whereClause(&$params, $sortBy = TRUE, $excludeHidden = TRUE) { + static function whereClause(&$params, $sortBy = TRUE, $excludeHidden = TRUE) { $values = array(); $clauses = array();