From f666716b3b6860915c7e2dd7afb6cc7b6cd96834 Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Thu, 9 May 2024 11:26:52 -0400 Subject: [PATCH] Bug 36791: (QA follow-up) Simplify conditional Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer (cherry picked from commit 37bda5d1300aa8262917be6f36172348244b7c73) Signed-off-by: Fridolin Somers --- authorities/authorities.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 3faecf36a2..fb0a37dbd8 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -548,7 +548,7 @@ my $changed_authtype = $input->param('changed_authtype') // q{}; my $dbh = C4::Context->dbh; my $authobj = Koha::Authorities->find($authid); -if ( defined $authid && !$authid || $authid && !$authobj ) { +if ( defined $authid && !$authobj ) { print $input->redirect("/cgi-bin/koha/errors/404.pl"); # escape early exit; }