[Koha-patches] [PATCH] Variable redeclared in same scope

Colin Campbell colin.campbell at ptfs-europe.com
Mon Dec 13 18:05:06 CET 2010


lexical variable declared twice causing run time warnings
---
 C4/Items.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Items.pm b/C4/Items.pm
index 5eda6dd..a7c190c 100644
--- a/C4/Items.pm
+++ b/C4/Items.pm
@@ -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
-- 
1.7.3.3



More information about the Koha-patches mailing list