From: Adrian Lang Date: Mon, 26 Jan 2009 13:19:49 +0000 (+0100) Subject: Fix pagination on user groups page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b211271f9507e49faf4052836686a356e3f88ed;p=quix0rs-gnu-social.git Fix pagination on user groups page --- diff --git a/lib/util.php b/lib/util.php index a80c62287d..50e943533d 100644 --- a/lib/util.php +++ b/lib/util.php @@ -903,7 +903,9 @@ function common_fancy_url($action, $args=null) case 'grouplogo': return common_path('group/'.$args['nickname'].'/logo'); case 'usergroups': - return common_path($args['nickname'].'/groups' . (($args) ? ('?' . http_build_query($args)) : '')); + $nickname = $args['nickname']; + unset($args['nickname']); + return common_path($nickname.'/groups' . (($args) ? ('?' . http_build_query($args)) : '')); case 'groups': return common_path('group' . (($args) ? ('?' . http_build_query($args)) : '')); default: