diff --git a/module/VuFind/src/VuFind/ILS/Logic/Holds.php b/module/VuFind/src/VuFind/ILS/Logic/Holds.php
index 949e0e4fd6750858a35fb16016816cbfdcb03c0c..a9a7db51059b45331e6a8e9e8bf91a1b6141ed92 100644
--- a/module/VuFind/src/VuFind/ILS/Logic/Holds.php
+++ b/module/VuFind/src/VuFind/ILS/Logic/Holds.php
@@ -363,7 +363,7 @@ class Holds
                 }
             }
 
-            if ($checkStorageRequests && is_array($holdings)) {
+            if ($checkStorageRetrievalRequests && is_array($holdings)) {
                 // Generate Links
                 // Loop through each holding
                 foreach ($holdings as $location_key => $location) {