some minor cleanups

This commit is contained in:
redmatrix
2016-03-10 15:43:59 -08:00
parent 107f80892a
commit 32c23ef562
4 changed files with 5 additions and 4 deletions

View File

@@ -415,7 +415,7 @@ function init_groups_visitor($contact_id) {
$r = q("SELECT hash FROM `groups` left join group_member on groups.id = group_member.gid WHERE xchan = '%s' ",
dbesc($contact_id)
);
if(count($r)) {
if($r) {
foreach($r as $rr)
$groups[] = $rr['hash'];
}