From c15db78d3c26903c557b00a35bba329a4022b569 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 24 Oct 2016 17:04:11 +0200 Subject: [PATCH] Bug 17428: (QA followup) Remove warning Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall --- Koha/REST/V1/Cities.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/REST/V1/Cities.pm b/Koha/REST/V1/Cities.pm index d9d2774f6b..e8ababe10a 100644 --- a/Koha/REST/V1/Cities.pm +++ b/Koha/REST/V1/Cities.pm @@ -30,8 +30,9 @@ sub list { my $cities; my $filter; + $args //= {}; - for my $filter_param ( keys $args ) { + for my $filter_param ( keys %$args ) { $filter->{$filter_param} = { LIKE => $args->{$filter_param} . "%" }; } -- 2.39.2