aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-13 21:19:33 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-13 21:19:33 +0100
commita8d5c832515581ef1f2c128e43c03b77d3151014 (patch)
treed086123b9fa1539f9bdb305285aeb897a2c2eb60 /include/security.php
parent370a007ee215d2889d9bf760b0247678c08d31ac (diff)
parent7747a23a7895bfa2aac0b95604ea42dab6630079 (diff)
downloadvolse-hubzilla-a8d5c832515581ef1f2c128e43c03b77d3151014.tar.gz
volse-hubzilla-a8d5c832515581ef1f2c128e43c03b77d3151014.tar.bz2
volse-hubzilla-a8d5c832515581ef1f2c128e43c03b77d3151014.zip
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/security.php b/include/security.php
index 215cc92cb..f3cf2d1b6 100644
--- a/include/security.php
+++ b/include/security.php
@@ -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'];
}