From a0d30b33932d607f042d0d2b4cda3bbf877192ec Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 16 Apr 2009 14:22:46 -0600 Subject: [PATCH] Bug #8179: Might reach this point without a cache backend --- framework/Imap_Client/lib/Horde/Imap/Client/Base.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.11.0