diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index 5cdad462cb..51e608b296 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -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; } }