[Koha-patches] [PATCH] Fix something that doesn't work in some perl versions.
Nahuel Angelinetti
nahuel.angelinetti at biblibre.com
Wed Dec 10 10:24:36 CET 2008
---
virtualshelves/addbybiblionumber.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/virtualshelves/addbybiblionumber.pl b/virtualshelves/addbybiblionumber.pl
index 2c7600b..b19e7da 100755
--- a/virtualshelves/addbybiblionumber.pl
+++ b/virtualshelves/addbybiblionumber.pl
@@ -98,13 +98,13 @@ else { # this shelf doesn't already exist.
my ($shelflist) = GetRecentShelves(1, $limit, $loggedinuser);
my @shelvesloop;
my %shelvesloop;
- for my $shelf ( @{${@$shelflist}[0]} ) {
+ for my $shelf ( @{ $shelflist->[0] } ) {
push( @shelvesloop, $shelf->{shelfnumber} );
$shelvesloop{$shelf->{shelfnumber}} = $shelf->{shelfname};
}
# then open shelves...
my ($shelflist) = GetRecentShelves(3, $limit, undef);
- for my $shelf ( @{${@$shelflist}[0]} ) {
+ for my $shelf ( @{ $shelflist->[0] } ) {
push( @shelvesloop, $shelf->{shelfnumber} );
$shelvesloop{$shelf->{shelfnumber}} = $shelf->{shelfname};
}
--
1.5.6.3
More information about the Koha-patches
mailing list