From 7f965d16110fc9229441ef8a7d7aa63c26026b3f Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 22 Jul 2009 12:11:25 -0600 Subject: [PATCH] Fix undefined variable --- imp/lib/Auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Auth.php b/imp/lib/Auth.php index d4c0a3c83..5ba1d4921 100644 --- a/imp/lib/Auth.php +++ b/imp/lib/Auth.php @@ -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'] -- 2.11.0