From: Michael M Slusarz Date: Thu, 16 Apr 2009 20:22:46 +0000 (-0600) Subject: Bug #8179: Might reach this point without a cache backend X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a0d30b33932d607f042d0d2b4cda3bbf877192ec;p=horde.git Bug #8179: Might reach this point without a cache backend --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index 8791256b3..724ab5ab5 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -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) {