From: Andrew Dolgov Date: Thu, 14 Dec 2017 16:27:55 +0000 (+0300) Subject: fix single user mode login failing because of isdefaultpassword() X-Git-Tag: 18.8~102 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9390ddeae2ed814bb89c15742ee7296046609d1e;p=tt-rss.git fix single user mode login failing because of isdefaultpassword() --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 6d96b198..50d20490 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; }