From: Michael M Slusarz Date: Wed, 22 Jul 2009 18:11:25 +0000 (-0600) Subject: Fix undefined variable X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7f965d16110fc9229441ef8a7d7aa63c26026b3f;p=horde.git Fix undefined variable --- 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']