Fix for bug 605, committing here as well as the stable branch
authorrangi <rangi>
Thu, 15 Jan 2004 23:33:29 +0000 (23:33 +0000)
committerrangi <rangi>
Thu, 15 Jan 2004 23:33:29 +0000 (23:33 +0000)
C4/Reserves2.pm

index e2f7576..75b39d4 100755 (executable)
@@ -452,7 +452,7 @@ sub CheckWaiting {
                            AND reserves.found = 'W'
                            AND cancellationdate is NULL");
     $sth->execute($borr);
-    if (my $data=$sth->fetchrow_hashref) {
+    while (my $data=$sth->fetchrow_hashref) {
          push(@itemswaiting,$data);
     }
     $sth->finish;