Variable redeclared in same scope

lexical variable declared twice causing run time warnings

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Colin Campbell 2010-12-13 17:05:06 +00:00 committed by Chris Cormack
parent 40e2b5421a
commit 51dc5b060b

View 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