Fix undefined error
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Jun 2009 05:05:02 +0000 (23:05 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Jun 2009 05:05:56 +0000 (23:05 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Socket.php

index 3fe7d09..43c1e07 100644 (file)
@@ -2294,7 +2294,9 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base
 
         $i = 0;
         $cnt = count($data);
-        $fp = $this->_temp['fetchparams'];
+        $fp = isset($this->_temp['fetchparams'])
+            ? $this->_temp['fetchparams']
+            : array();
 
         if (isset($this->_temp['fetchresp']['seq'][$id])) {
             $tmp = $this->_temp['fetchresp']['seq'][$id];