From 4270b63d983290c08a91fd5e73dcf730f9791f0f Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Tue, 15 Sep 2020 15:12:57 -0400 Subject: [PATCH] LP1895660: AppUtil.pm substr outside of string unique_unnested_numbers expects a list of pg arrays, but if its given an empty results list it tries to remove { and } from an undefined value. Signed-off-by: Jason Boyer --- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm index 9190ad81b8..1a0f753745 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -2272,6 +2272,8 @@ sub unique_unnested_numbers { no warnings 'numeric'; + return undef unless ( scalar @_ ); + return uniq( map( int, -- 2.11.0