summaryrefslogtreecommitdiff
path: root/classes/pref/prefs.php
diff options
context:
space:
mode:
authorfox <[email protected]>2017-12-14 17:09:32 +0000
committerGogs <[email protected]>2017-12-14 17:09:32 +0000
commitfde50b4e634cf42635a8ab62ae72e8a73d59f1bc (patch)
tree7e0f2c4f91e0de2d51b04dabf6a3c55dc55a4068 /classes/pref/prefs.php
parent9390ddeae2ed814bb89c15742ee7296046609d1e (diff)
parent44c6a04b61a25c3ab97dcc429dcec7f706dd3ce5 (diff)
Merge branch 'master' of bcollet/tt-rss-fix-auth into master
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r--classes/pref/prefs.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 50d20490a..7a61b6f19 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 && $authenticator->check_password($_SESSION["uid"], "password")) {
+ if ($authenticator && function_exists($authenticator->check_password) $authenticator->check_password($_SESSION["uid"], "password")) {
return true;
}
@@ -1125,4 +1125,4 @@ class Pref_Prefs extends Handler_Protected {
return "";
}
-} \ No newline at end of file
+}