Bug 21460: (follow-up) Fix bugs found in QA
[koha-equinox.git] / Koha / REST / V1 / Illrequests.pm
index f747390..907dc5c 100644 (file)
@@ -57,7 +57,7 @@ sub list {
     # Get all requests
     # If necessary, only get those from a specified patron
     my @requests = Koha::Illrequests->search({
-        args->{borrowernumber}
+        $args->{borrowernumber}
         ? ( borrowernumber => $args->{borrowernumber} )
         : ()
     })->as_list;