<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
// add all the fields for chosen groups
$this->_tables = $this->_options = array();
foreach ($this->_groupTree as $groupID => $group) {
- if (!CRM_Utils_Array::value($groupID, $this->_customGroupIDs)) {
+ if (empty($this->_customGroupIDs[$groupID])) {
continue;
}
function all($offset = 0, $rowcount = 0, $sort = NULL, $includeContactIDs = FALSE, $justIDs = FALSE) {
//redirect if custom group not select in search criteria
- if (!CRM_Utils_Array::value('custom_group', $this->_formValues)) {
+ if (empty($this->_formValues['custom_group'])) {
CRM_Core_Error::statusBounce(ts("You must select at least one Custom Group as a search criteria."),
CRM_Utils_System::url('civicrm/contact/search/custom',
"reset=1&csid={$this->_formValues['customSearchID']}",