From 902acddb01c5f30513e0838e723f2ae3b5b95f70 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Mon, 7 Jun 2010 13:35:29 -0400 Subject: [PATCH] make sure we always return a Horde_Url object --- ansel/lib/Ansel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.11.0