Bug 36791: (QA follow-up) Simplify conditional

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Emily Lamancusa 2024-05-09 11:26:52 -04:00 committed by Katrin Fischer
parent 18843cabdb
commit 37bda5d130
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -553,7 +553,7 @@ if ( $op eq 'cud-change-framework' ) {
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;
}