From 7da96746e8b8b713f622bc09ffe1d534eb0327d0 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 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 --- 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