make sure we always return a Horde_Url object
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 7 Jun 2010 17:35:29 +0000 (13:35 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 7 Jun 2010 17:35:29 +0000 (13:35 -0400)
ansel/lib/Ansel.php

index 272fe61..1c7bbb2 100644 (file)
@@ -289,7 +289,7 @@ class Ansel
                     !empty($data['gallery_view']) &&
                     $data['gallery_view'] == 'GalleryLightbox') {
 
-                    $url = new Horde_Url($url .= '#' . $data['image']);
+                    $url = new Horde_Url($url . '#' . $data['image']);
                 }
 
                 return Horde::applicationUrl($url, $full, $append_session);
@@ -300,7 +300,7 @@ class Ansel
                     !empty($data['gallery_view']) &&
                     $data['gallery_view'] == 'GalleryLightbox') {
 
-                    $url .= '#' . $data['image'];
+                    $url = new Horde_Url($url . '#' . $data['image']);
                 }
 
                 return $url;