Assign $url since we later expect it to be an object.
authorChuck Hagenbuch <chuck@horde.org>
Sun, 8 Aug 2010 14:15:58 +0000 (10:15 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sun, 8 Aug 2010 14:17:55 +0000 (10:17 -0400)
ansel/lib/Ansel.php

index 8b2d69b..abc7561 100644 (file)
@@ -301,15 +301,14 @@ class Ansel
                 if (empty($data['groupby'])) {
                     $data['groupby'] = $prefs->getValue('groupby');
                 }
-
                 if ($data['groupby'] == 'owner') {
                     $url = 'user/';
-                }
-                if ($data['groupby'] == 'none') {
+                } elseif ($data['groupby'] == 'none') {
                     $url = 'all/';
                 }
                 unset($data['groupby']);
-                Horde::applicationUrl($url, $full, $append_session);
+
+                $url = Horde::applicationUrl($url, $full, $append_session);
                 if (count($data)) {
                     $url->add($data);
                 }