From: Jason Boyer Date: Tue, 15 Sep 2020 19:12:57 +0000 (-0400) Subject: LP1895660: AppUtil.pm X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4270b63d983290c08a91fd5e73dcf730f9791f0f;p=working%2FEvergreen.git 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 --- 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,