system/classes/config.class.php
branchHEAD
changeset 7019 a65dd04d595b
parent 698340a4e43583a5
child 7037664a7d73ef34
     1.1 --- a/system/classes/config.class.php	Mon Apr 20 17:58:10 2009 +0200
     1.2 +++ b/system/classes/config.class.php	Sun May 10 09:30:30 2009 +0200
     1.3 @@ -387,9 +387,15 @@
     1.4              }
     1.5          }
     1.6  
     1.7 -        if (!$this->config_array['Core']['user_login_method']['standard'] &&
     1.8 -            !$this->config_array['Core']['user_login_method']['openid'] &&
     1.9 -            !$this->config_array['Core']['user_login_method']['3rdparty']) {
    1.10 +        $methods = array('standard', 'openid', '3rdparty');
    1.11 +        $methods_disabled = 0;
    1.12 +        foreach ($methods as $m) {
    1.13 +            if (isset($this->config_array['Core']['user_login_method'][$m]) &&
    1.14 +                    !$this->config_array['Core']['user_login_method'][$m]) {
    1.15 +                $methods_disabled++;    
    1.16 +            }
    1.17 +        }
    1.18 +        if ($methods_disabled == count($methods)) {
    1.19              // just to make sure people don't lock themselves out of their site
    1.20              $this->config_array['Core']['user_login_method']['standard'] = true;
    1.21