Variable redeclared in same scope
authorColin Campbell <colin.campbell@ptfs-europe.com>
Mon, 13 Dec 2010 17:05:06 +0000 (17:05 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 14 Dec 2010 00:21:06 +0000 (13:21 +1300)
lexical variable declared twice causing run time warnings

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Items.pm

index 5eda6dd..a7c190c 100644 (file)
@@ -1279,7 +1279,7 @@ sub GetItemsInfo {
         );
 
         $restrictedstatus->execute;
-        my ($authorised_valuecode) = $restrictedstatus->fetchrow;
+        ($authorised_valuecode) = $restrictedstatus->fetchrow;
         if ($authorised_valuecode) {
             $restrictedstatus = $dbh->prepare(
                 "SELECT lib,lib_opac FROM authorised_values