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>
(cherry picked from commit 37bda5d130
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
b9ba92c153
commit
f666716b3b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue