]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
No pagination when no groups shown... :)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 4 Nov 2013 15:57:30 +0000 (16:57 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 4 Nov 2013 15:57:30 +0000 (16:57 +0100)
actions/usergroups.php

index b705afe06886993cc40e5908257c5cbe99e25f68..45fed57d84714e13205c415aad65fc8f18e76a07 100644 (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));
         }
     }