From 3552bf4d946f6cb431c3351981f1a30aba639d8e Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 4 Nov 2013 16:57:30 +0100 Subject: [PATCH] No pagination when no groups shown... :) --- actions/usergroups.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)); } }