Don't update cache unless we have something to update it with
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 28 Jul 2009 03:54:17 +0000 (21:54 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 28 Jul 2009 04:09:50 +0000 (22:09 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Socket.php

index d41def6..ca3fe5f 100644 (file)
@@ -2740,7 +2740,9 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base
                 }
             }
 
-            $this->_updateCache($out);
+            if (!empty($out)) {
+                $this->_updateCache($out);
+            }
         }
 
         return $this->_temp['modified'];