diff --git a/module/VuFind/src/VuFind/QRCode/Loader.php b/module/VuFind/src/VuFind/QRCode/Loader.php
index e9ec2385471c7c1a1495dfc228dc554de71911f7..56a5b6d2d81870e838b1af2f5425fdddf5113d18 100644
--- a/module/VuFind/src/VuFind/QRCode/Loader.php
+++ b/module/VuFind/src/VuFind/QRCode/Loader.php
@@ -62,7 +62,7 @@ class Loader extends \VuFind\ImageLoader
     {
         $this->setThemeInfo($theme);
         $this->configuredFailImage
-            = $this->config->QRCode->noQRCodeAvailableImage ?? null;
+            = $config->QRCode->noQRCodeAvailableImage ?? null;
         $this->defaultFailImage = 'images/noQRCode.gif';
     }