X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FAcquisition.pm;h=4a9eae6c2d65abed8035d97d9194bf20b1a0eae7;hb=1dabb45a5004e577259cc757d192a019c55d12e9;hp=376a20bb5de602bba6aded78b7742bafd7c13f25;hpb=e0df9b5e599271b9032041b865b471b4d4495436;p=koha.git diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 376a20bb5d..4a9eae6c2d 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -801,14 +801,12 @@ Returns a reference to the array of all the basketgroups of bookseller $booksell sub GetBasketgroups { my $booksellerid = shift; - die "bookseller id is required to edit a basketgroup" unless $booksellerid; - my $query = "SELECT * FROM aqbasketgroups WHERE booksellerid=? ORDER BY `id` DESC"; + die 'bookseller id is required to edit a basketgroup' unless $booksellerid; + my $query = 'SELECT * FROM aqbasketgroups WHERE booksellerid=? ORDER BY id DESC'; my $dbh = C4::Context->dbh; my $sth = $dbh->prepare($query); $sth->execute($booksellerid); - my $results = $sth->fetchall_arrayref({}); - $sth->finish; - return $results + return $sth->fetchall_arrayref({}); } #------------------------------------------------------------#