aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Acl.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-10 10:45:09 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-10 10:45:09 +0200
commit9d5d3a946817c1b1a9dc18dead85bc989e820564 (patch)
tree259c9b03921c18212a86ea7d0fc8111cd3ce5930 /Zotlabs/Module/Acl.php
parent85e82e919e146454a8b3973ed4a2a69066b98aa3 (diff)
parentcf415a4312f3a926c3b080fb49042752441f23b4 (diff)
downloadvolse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.tar.gz
volse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.tar.bz2
volse-hubzilla-9d5d3a946817c1b1a9dc18dead85bc989e820564.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Module/Acl.php')
-rw-r--r--Zotlabs/Module/Acl.php28
1 files changed, 15 insertions, 13 deletions
diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php
index 7bc197a93..2bc4ba62d 100644
--- a/Zotlabs/Module/Acl.php
+++ b/Zotlabs/Module/Acl.php
@@ -65,18 +65,20 @@ class Acl extends \Zotlabs\Web\Controller {
intval($count),
intval($start)
);
-
- foreach($r as $g){
- // logger('acl: group: ' . $g['gname'] . ' members: ' . group_get_members_xchan($g['id']));
- $groups[] = array(
- "type" => "g",
- "photo" => "images/twopeople.png",
- "name" => $g['gname'],
- "id" => $g['id'],
- "xid" => $g['hash'],
- "uids" => group_get_members_xchan($g['id']),
- "link" => ''
- );
+
+ if($r) {
+ foreach($r as $g){
+ // logger('acl: group: ' . $g['gname'] . ' members: ' . group_get_members_xchan($g['id']));
+ $groups[] = array(
+ "type" => "g",
+ "photo" => "images/twopeople.png",
+ "name" => $g['gname'],
+ "id" => $g['id'],
+ "xid" => $g['hash'],
+ "uids" => group_get_members_xchan($g['id']),
+ "link" => ''
+ );
+ }
}
}
@@ -204,7 +206,7 @@ class Acl extends \Zotlabs\Web\Controller {
else
$r = array();
- if(count($r)) {
+ if($r) {
foreach($r as $g){
// remove RSS feeds from ACLs - they are inaccessible