From 730df3b1a53c7301ca5e072596618a284c405bb5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 20 Jul 2020 17:44:40 +0200 Subject: [PATCH] Bug 23391: Remove warnings t/db_dependent/api/v1/illrequests.t .. Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61. Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61. Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61. Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61. Use of uninitialized value $hidden_statuses_string in split at /kohadevbox/koha/Koha/REST/V1/Illrequests.pm line 61. t/db_dependent/api/v1/illrequests.t .. ok Signed-off-by: Jonathan Druart --- Koha/REST/V1/Illrequests.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm index 2274c591ef..24f93cbffa 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -56,7 +56,7 @@ sub list { } # Get the pipe-separated string of hidden ILL statuses - my $hidden_statuses_string = C4::Context->preference('ILLHiddenRequestStatuses'); + my $hidden_statuses_string = C4::Context->preference('ILLHiddenRequestStatuses') // q{}; # Turn into arrayref my $hidden_statuses = [ split /\|/, $hidden_statuses_string ]; -- 2.39.5