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 commit37bda5d130
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitf666716b3b
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
823360f3b0
commit
cccf7d4979
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