]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Profile->getGroupCount() should be used for groupcounts
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 2 Nov 2013 19:16:35 +0000 (20:16 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 2 Nov 2013 19:17:14 +0000 (20:17 +0100)
This was found in the PHP error log as:
    "Trying to get property of non-object in %HTDOCS%/lib/profileaction.php on line 270"

lib/profileaction.php

index b2990bd249625780d369578813f66857ee357a96..02f0bbad5441e1a45a823ba4fcec49bf7efe9265 100644 (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) {