forked from GNUsocial/gnu-social
No pagination when no groups shown... :)
This commit is contained in:
parent
413f040673
commit
3552bf4d94
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user