$_SESSION['imp']['server_key'] might not be defined.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 22 Dec 2009 03:31:52 +0000 (22:31 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 22 Dec 2009 03:31:52 +0000 (22:31 -0500)
Not sure if the third check is necessary any more with this change...

imp/lib/Imap.php

index fc1739a..ff30d93 100644 (file)
@@ -127,6 +127,7 @@ class IMP_Imap
         }
 
         if (empty($_SESSION['imp']) ||
+            empty($_SESSION['imp']['server_key']) ||
             empty($_SESSION['imp']['imap_ob'][$_SESSION['imp']['server_key']])) {
             return false;
         }