Fix undefined variable
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 22 Jul 2009 18:11:25 +0000 (12:11 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 22 Jul 2009 18:11:25 +0000 (12:11 -0600)
imp/lib/Auth.php

index d4c0a3c..5ba1d49 100644 (file)
@@ -401,13 +401,13 @@ class IMP_Auth
     {
         global $conf;
 
-        $ptr = $GLOBALS['imp_imap']->loadServerConfig($credentials['server']);
+        $sess = &$_SESSION['imp'];
+
+        $ptr = $GLOBALS['imp_imap']->loadServerConfig($sess['server_key']);
         if ($ptr === false) {
             throw new Horde_Auth_Exception('', Horde_Auth::REASON_FAILED);
         }
 
-        $sess = &$_SESSION['imp'];
-
         /* Set the protocol. */
         $sess['protocol'] = isset($ptr['protocol'])
             ? $ptr['protocol']