no notice if the 'driver' key isn't set in the session
authorChuck Hagenbuch <chuck@horde.org>
Wed, 22 Jul 2009 01:01:51 +0000 (21:01 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Wed, 22 Jul 2009 01:01:51 +0000 (21:01 -0400)
framework/Auth/lib/Horde/Auth.php

index 71468f1..c9d3175 100644 (file)
@@ -372,7 +372,7 @@ class Horde_Auth
 
         /* Check for cached authentication results. */
         if (self::getAuth() &&
-            (($_SESSION['horde_auth']['driver'] == $driver) ||
+            ((isset($_SESSION['horde_auth']['driver']) && $_SESSION['horde_auth']['driver'] == $driver) ||
              isset($_SESSION['horde_auth']['app'][$driver]))) {
             return self::checkExistingAuth();
         }