From: Chuck Hagenbuch Date: Mon, 10 Aug 2009 04:10:01 +0000 (-0400) Subject: catch errors X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e2739b6974ce67c3f817a2027feaf1672300c220;p=horde.git catch errors --- diff --git a/ansel/lib/View/Gallery.php b/ansel/lib/View/Gallery.php index 0b0ef844b..c798af8e6 100644 --- a/ansel/lib/View/Gallery.php +++ b/ansel/lib/View/Gallery.php @@ -81,6 +81,9 @@ class Ansel_View_Gallery extends Ansel_View_Base } else { $this->gallery = $this->getGallery(); } + if (is_a($this->gallery, 'PEAR_Error')) { + throw new Horde_Exception($this->gallery); + } // Check user age if (!$this->gallery->isOldEnough()) {