diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2017-12-14 19:27:55 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2017-12-14 19:27:55 +0300 |
| commit | 9390ddeae2ed814bb89c15742ee7296046609d1e (patch) | |
| tree | c64c497e44269fbb348c424608a5e50efaaad83a /classes/pref | |
| parent | 072a348f930dc24a8f57df5cb63ab43dc68edd87 (diff) | |
fix single user mode login failing because of isdefaultpassword()
Diffstat (limited to 'classes/pref')
| -rw-r--r-- | classes/pref/prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 6d96b198d..50d20490a 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -922,7 +922,7 @@ class Pref_Prefs extends Handler_Protected { static function isdefaultpassword() { $authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]); - if ($authenticator->check_password($_SESSION["uid"], "password")) { + if ($authenticator && $authenticator->check_password($_SESSION["uid"], "password")) { return true; } |