From 943854132e787aaa665a7a939f3e83a8a715b478 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Thu, 2 Jun 2016 11:07:37 -0400 Subject: [PATCH] Potentially less expensive check. --- module/VuFind/src/VuFind/Auth/Manager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/VuFind/src/VuFind/Auth/Manager.php b/module/VuFind/src/VuFind/Auth/Manager.php index da5dc330c3d..6f51a646ef9 100644 --- a/module/VuFind/src/VuFind/Auth/Manager.php +++ b/module/VuFind/src/VuFind/Auth/Manager.php @@ -226,9 +226,10 @@ class Manager implements \ZfcRbac\Identity\IdentityProviderInterface */ public function supportsPasswordChange($authMethod = null) { - if ($this->getAuth($authMethod)->supportsPasswordChange()) { - return isset($this->config->Authentication->change_password) - && $this->config->Authentication->change_password; + if (isset($this->config->Authentication->change_password) + && $this->config->Authentication->change_password + ) { + return $this->getAuth($authMethod)->supportsPasswordChange(); } return false; } -- GitLab