From eebec347f254d3d3cb4a3704ed19f3e7dae1ef23 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Tue, 31 Jan 2023 14:59:18 -0500 Subject: [PATCH] LP#2004420: check that $note is defined before using it Signed-off-by: Chris Sharp --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm index 3d1f9ab462..00e042a87a 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm @@ -949,7 +949,7 @@ sub void_bills { $bill->voided('t'); $bill->voider($e->requestor->id); $bill->void_time('now'); - if ($note) { # only do this if there's a $note to add + if (defined $note) { # only do this if there's a $note to add my $n = ($bill->note) ? sprintf("%s\n", $bill->note) : ""; $bill->note(sprintf("$n%s", $note)); } -- 2.11.0