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:
Mikael Nordfeldth 2013-11-02 20:16:35 +01:00
parent ab4113168f
commit 413f040673

View File

@ -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) {