From bff289e5f7bbb42763de21c43d839a670d5847be Mon Sep 17 00:00:00 2001 From: Roman Dolny Date: Fri, 20 Feb 2026 19:25:44 +0000 Subject: [PATCH] Bug 41904: "Use of uninitialized value..." warning in del_message.pl Content-Type: text/plain; charset=utf-8 The warning [WARN] Use of uninitialized value in string eq at /kohadevbox/koha/circ/del_message.pl line 54. appears in plack-intranet-error.log Test plan: ========== 1. Observe plack-intranet-error.log 2. Search for any patron and go to "Check out" tab. 3. Add message for patron. Added message is shown in "Message" area with "Edit" and "Delete" links. 4. Click "Delete" and confirm modal. 5. Warning appears in plack-intranet-error.log 6. Apply the patch; restart_all 7. Repeat 3-4. No warning appears. Sponsored-by: Ignatianum University in Cracow Signed-off-by: Marcel de Rooy --- circ/del_message.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/del_message.pl b/circ/del_message.pl index 7218c7750e..c68d2f9621 100755 --- a/circ/del_message.pl +++ b/circ/del_message.pl @@ -51,7 +51,7 @@ if ( $message $message->delete if $message && $op eq 'cud-delete'; -if ( $input->param('from') eq "moremember" ) { +if ( $input->param('from') && $input->param('from') eq "moremember" ) { print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber"); } else { print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber"); -- 2.39.5