No pagination when no groups shown... :)

This commit is contained in:
Mikael Nordfeldth 2013-11-04 16:57:30 +01:00
parent 413f040673
commit 3552bf4d94
1 changed files with 3 additions and 4 deletions

View File

@ -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));
}
}