diff --git a/module/VuFind/src/VuFind/Auth/Database.php b/module/VuFind/src/VuFind/Auth/Database.php
index 5f6b24de29135c937c90b006f787a9b39229c4d3..f0fa7c1c1aced14b5345aaa27db275fe3d5ce824 100644
--- a/module/VuFind/src/VuFind/Auth/Database.php
+++ b/module/VuFind/src/VuFind/Auth/Database.php
@@ -81,8 +81,9 @@ class Database extends AbstractBase
      */
     protected function passwordHashingEnabled()
     {
-        return isset($this->config->Authentication->hash_passwords)
-            ? $this->config->Authentication->hash_passwords : false;
+        $config = $this->getConfig();
+        return isset($config->Authentication->hash_passwords)
+            ? $config->Authentication->hash_passwords : false;
     }
 
     /**