Merge remote branch 'kc/master'
authorChris Cormack <chrisc@catalyst.net.nz>
Wed, 14 Jul 2010 21:08:57 +0000 (09:08 +1200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 14 Jul 2010 21:08:57 +0000 (09:08 +1200)
C4/Reports/Guided.pm

index 5cdad46..51e608b 100644 (file)
@@ -460,7 +460,7 @@ sub execute_query ($;$$$) {
     if (defined($userlimit)) {
         if ($offset + $limit > $userlimit ) {
             $limit = $userlimit - $offset;
-        } elsif ( ! $offset && $limit > $userlimit ) {
+        } elsif ( ! $offset && $limit < $userlimit ) {
             $limit = $userlimit;
         }
     }