diff --git a/admin/authtypes.pl b/admin/authtypes.pl index 9f40827029..7be61e012d 100755 --- a/admin/authtypes.pl +++ b/admin/authtypes.pl @@ -44,7 +44,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( if ( $op eq 'add_form' ) { my $authority_type; - if ($authtypecode) { + if (defined $authtypecode) { $authority_type = Koha::Authority::Types->find($authtypecode); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt index 0e899b8eda..4740e4d3b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt @@ -1,7 +1,7 @@ [% INCLUDE 'doc-head-open.inc' %]