From: Mikael Nordfeldth Date: Mon, 4 Nov 2013 15:57:30 +0000 (+0100) Subject: No pagination when no groups shown... :) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3552bf4d946f6cb431c3351981f1a30aba639d8e;p=quix0rs-gnu-social.git No pagination when no groups shown... :) --- diff --git a/actions/usergroups.php b/actions/usergroups.php index b705afe068..45fed57d84 100644 --- a/actions/usergroups.php +++ b/actions/usergroups.php @@ -140,14 +140,13 @@ class UsergroupsAction extends ProfileAction if ($groups instanceof User_group) { $gl = new GroupList($groups, $this->user, $this); $cnt = $gl->show(); + $this->pagination($this->page > 1, $cnt > GROUPS_PER_PAGE, + $this->page, 'usergroups', + array('nickname' => $this->user->nickname)); } else { $this->showEmptyListMessage(); } - $this->pagination($this->page > 1, $cnt > GROUPS_PER_PAGE, - $this->page, 'usergroups', - array('nickname' => $this->user->nickname)); - Event::handle('EndShowUserGroupsContent', array($this)); } }