From 2f06b53712f512e41168d89fc1b8d5bc9b854faf 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 Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- 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 f8e2f49dc1..fce9f7f165 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -2287,6 +2287,8 @@ sub unique_unnested_numbers { no warnings 'numeric'; + return undef unless ( scalar @_ ); + return uniq( map( int, -- 2.11.0