From: Chris Sharp Date: Tue, 31 Jan 2023 19:59:18 +0000 (-0500) Subject: LP#2004420: check that $note is defined before using it X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eebec347f254d3d3cb4a3704ed19f3e7dae1ef23;p=evergreen%2Fpines.git LP#2004420: check that $note is defined before using it Signed-off-by: Chris Sharp --- 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)); }