From aeae7cd99de4dd793e25146263b769fd674e5646 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 --- 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 d9d2774..e8ababe 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.7.4