From: Andrew Dolgov Date: Fri, 15 Dec 2017 09:15:15 +0000 (+0300) Subject: isdefaultpassword: use method_exists() to check for check_password X-Git-Tag: 18.8~98 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d0cce0c7a431d886403632ef94add650363d4ef6;hp=0f05147531cb82ed3c6d298be9b3eca63192c81f;p=tt-rss.git isdefaultpassword: use method_exists() to check for check_password --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index fca67d0a..fac4b941 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -922,7 +922,10 @@ class Pref_Prefs extends Handler_Protected { static function isdefaultpassword() { $authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]); - if ($authenticator && function_exists($authenticator->check_password) && $authenticator->check_password($_SESSION["uid"], "password")) { + if ($authenticator && + method_exists($authenticator, "check_password") && + $authenticator->check_password($_SESSION["uid"], "password")) { + return true; }