Do not display the wrong amount of users for empty groups

refs #5543
This commit is contained in:
Matthias Jentsch 2015-09-29 10:37:56 +02:00 committed by Eric Lippmann
parent f23aebaf95
commit b7121c5384
1 changed files with 3 additions and 1 deletions

View File

@ -388,7 +388,9 @@ class ListController extends Controller
'contacts' => array()
);
}
$groupData[$c->contactgroup_name]['contacts'][] = $c;
if (isset ($c->contact_name)) {
$groupData[$c->contactgroup_name]['contacts'][] = $c;
}
}
// TODO: Find a better naming