From: Michael J. Rubinsky Date: Mon, 7 Jun 2010 17:35:29 +0000 (-0400) Subject: make sure we always return a Horde_Url object X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=902acddb01c5f30513e0838e723f2ae3b5b95f70;p=horde.git make sure we always return a Horde_Url object --- diff --git a/ansel/lib/Ansel.php b/ansel/lib/Ansel.php index 272fe6169..1c7bbb2d3 100644 --- a/ansel/lib/Ansel.php +++ b/ansel/lib/Ansel.php @@ -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;