system/classes/config.class.php
branchHEAD
changeset 7019 a65dd04d595b
parent 6983 40a4e43583a5
child 7037 664a7d73ef34
--- a/system/classes/config.class.php	Sat May 09 17:59:54 2009 +0200
+++ b/system/classes/config.class.php	Sun May 10 09:30:30 2009 +0200
@@ -387,9 +387,15 @@
             }
         }
 
-        if (!$this->config_array['Core']['user_login_method']['standard'] &&
-            !$this->config_array['Core']['user_login_method']['openid'] &&
-            !$this->config_array['Core']['user_login_method']['3rdparty']) {
+        $methods = array('standard', 'openid', '3rdparty');
+        $methods_disabled = 0;
+        foreach ($methods as $m) {
+            if (isset($this->config_array['Core']['user_login_method'][$m]) &&
+                    !$this->config_array['Core']['user_login_method'][$m]) {
+                $methods_disabled++;    
+            }
+        }
+        if ($methods_disabled == count($methods)) {
             // just to make sure people don't lock themselves out of their site
             $this->config_array['Core']['user_login_method']['standard'] = true;