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>
(cherry picked from commit 434c1d6483)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
0fc64a62ef
commit
fdc9905e35
|
|
@ -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 New Issue