LP#2004420: check that $note is defined before using it
authorChris Sharp <csharp@georgialibraries.org>
Tue, 31 Jan 2023 19:59:18 +0000 (14:59 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 1 Feb 2023 14:25:55 +0000 (09:25 -0500)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm

index 3d1f9ab..00e042a 100644 (file)
@@ -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));
         }