No auth, if $session doesn't exist.
authorJan Schneider <jan@horde.org>
Tue, 9 Nov 2010 16:26:17 +0000 (17:26 +0100)
committerJan Schneider <jan@horde.org>
Tue, 9 Nov 2010 16:26:17 +0000 (17:26 +0100)
framework/Core/lib/Horde/Registry.php

index 5d38116..19a3aea 100644 (file)
@@ -1824,6 +1824,10 @@ class Horde_Registry
     {
         global $session;
 
+        if (!isset($session)) {
+            return false;
+        }
+
         if ($format == 'original') {
             return $session->exists('horde', 'auth/authId')
                 ? $session->get('horde', 'auth/authId')