[Koha-patches] [PATCH] bug5455 (Fix uninitialized-warnings on authorities.pl)
Marcel de Rooy
M.de.Rooy at rijksmuseum.nl
Mon Nov 29 13:46:55 CET 2010
Fix warnings for uninitialized authtypecode on lines 646, 653.
---
authorities/authorities.pl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/authorities/authorities.pl b/authorities/authorities.pl
index 9429a58..d4f1601 100755
--- a/authorities/authorities.pl
+++ b/authorities/authorities.pl
@@ -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",
--
1.6.0.6
More information about the Koha-patches
mailing list