From 413f04067354e0bd97b6258aa24c6e38cef0fd10 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 2 Nov 2013 20:16:35 +0100 Subject: [PATCH] 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" --- lib/profileaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/profileaction.php b/lib/profileaction.php index b2990bd249..02f0bbad54 100644 --- a/lib/profileaction.php +++ b/lib/profileaction.php @@ -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) { -- 2.39.5