Bug #8179: Might reach this point without a cache backend
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 16 Apr 2009 20:22:46 +0000 (14:22 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 16 Apr 2009 20:22:46 +0000 (14:22 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Base.php

index 8791256..724ab5a 100644 (file)
@@ -2018,7 +2018,9 @@ abstract class Horde_Imap_Client_Base
         }
 
         /* Get the cached values. */
-        $data = $this->_cache->get($this->_selected, $uids, $get_fields, $status_res['uidvalidity']);
+        if (!empty($cache_array)) {
+            $data = $this->_cache->get($this->_selected, $uids, $get_fields, $status_res['uidvalidity']);
+        }
 
         // Build a list of what we still need.
         foreach ($uids as $val) {