forked from GNUsocial/gnu-social
Avoid E_NOTICE spew when listing group members who aren't admins
This commit is contained in:
parent
a93d0dc16a
commit
7baf671570
@ -126,7 +126,8 @@ class FoafGroupAction extends Action
|
|||||||
while ($members->fetch()) {
|
while ($members->fetch()) {
|
||||||
$member_uri = common_local_url('userbyid', array('id'=>$members->id));
|
$member_uri = common_local_url('userbyid', array('id'=>$members->id));
|
||||||
$member_details[$member_uri] = array(
|
$member_details[$member_uri] = array(
|
||||||
'nickname' => $members->nickname
|
'nickname' => $members->nickname,
|
||||||
|
'is_admin' => false,
|
||||||
);
|
);
|
||||||
$this->element('member', array('rdf:resource' => $member_uri));
|
$this->element('member', array('rdf:resource' => $member_uri));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user