Don't output debug on cache lookup failure
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Apr 2009 04:00:38 +0000 (22:00 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Apr 2009 04:00:38 +0000 (22:00 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Cache.php

index 9343c56..061ab2e 100644 (file)
@@ -251,7 +251,7 @@ class Horde_Imap_Client_Cache
                 }
             }
 
-            if ($this->_params['debug']) {
+            if ($this->_params['debug'] && !empty($ret_array)) {
                 fwrite($this->_params['debug'], 'Horde_Imap_Client_Cache: Retrieved from cache (mailbox: ' . $mailbox . '; UIDs: ' . implode(',', array_keys($ret_array)) . ")\n");
             }
         }