bug5455 (Fix uninitialized-warnings on authorities.pl)
Fix warnings for uninitialized authtypecode on lines 646, 653. Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
8b3a2ecebd
commit
434c1d6483
1 changed files with 3 additions and 1 deletions
|
@ -545,7 +545,9 @@ my $linkid=$input->param('linkid');
|
|||
my $authtypecode = $input->param('authtypecode');
|
||||
|
||||
my $dbh = C4::Context->dbh;
|
||||
$authtypecode = &GetAuthTypeCode($authid) if !$authtypecode;
|
||||
if(!$authtypecode) {
|
||||
$authtypecode = $authid? &GetAuthTypeCode($authid): '';
|
||||
}
|
||||
|
||||
my ($template, $loggedinuser, $cookie)
|
||||
= get_template_and_user({template_name => "authorities/authorities.tmpl",
|
||||
|
|
Loading…
Reference in a new issue