forked from GNUsocial/gnu-social
Profile->getGroupCount() should be used for groupcounts
This was found in the PHP error log as: "Trying to get property of non-object in %HTDOCS%/lib/profileaction.php on line 270"
This commit is contained in:
parent
ab4113168f
commit
413f040673
@ -267,7 +267,7 @@ class ProfileAction extends Action
|
||||
// TRANS: H2 text for user group membership statistics.
|
||||
$this->statsSectionLink('usergroups', _('Groups'));
|
||||
$this->text(' ');
|
||||
$this->text($this->profile->getGroups(0, null)->N);
|
||||
$this->text($this->profile->getGroupCount());
|
||||
$this->elementEnd('h2');
|
||||
|
||||
if ($groups instanceof User_group) {
|
||||
|
Loading…
Reference in New Issue
Block a user