From: Michael J. Rubinsky Date: Thu, 30 Dec 2010 19:14:16 +0000 (-0500) Subject: Fix fetching known style hashes. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a704948afcf726becf5f8b51689514ee1aadddd0;p=horde.git Fix fetching known style hashes. Temp fix until we move to Horde_Db --- diff --git a/ansel/lib/Storage.php b/ansel/lib/Storage.php index 20e57097c..e4bc99355 100644 --- a/ansel/lib/Storage.php +++ b/ansel/lib/Storage.php @@ -1166,5 +1166,10 @@ class Ansel_Storage public function getHashes() { $hashes = $this->_db->query('SELECT style_hash FROM ansel_hashes'); + if (!($hashes instanceof PEAR_Error)) { + return $hashes->fetchCol(); + } else { + throw new Ansel_Exception($hashes); + } } }