Commit d55675fe authored by colemanw's avatar colemanw

Merge pull request #1034 from totten/master-no-customgroups-warning

BAO_CustomGroup - Fix warning when displaying "Edit Contact" on a site w...
parents dd353a33 fcbb756b
......@@ -1770,6 +1770,8 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
* @param boolean $returnCount true if customValue count needs to be returned
*/
static function buildCustomDataView(&$form, &$groupTree, $returnCount = FALSE, $gID = NULL, $prefix = NULL) {
$details = array();
foreach ($groupTree as $key => $group) {
if ($key === 'info') {
continue;
......@@ -1826,6 +1828,7 @@ SELECT IF( EXISTS(SELECT name FROM civicrm_contact_type WHERE name like %1), 1,
return count($details[$gID]);
}
else {
$countValue = array();
foreach( $details as $key => $value ) {
$countValue[$key] = count($details[$key]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment