From a704948afcf726becf5f8b51689514ee1aadddd0 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 30 Dec 2010 14:14:16 -0500 Subject: [PATCH] Fix fetching known style hashes. Temp fix until we move to Horde_Db --- ansel/lib/Storage.php | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } } -- 2.11.0