set/page 0 switches off paging
[spider.git] / cmd / set / page.pl
index cb997c93059a7fe4c7d94ea25bea0062cf9a93c9..6b5097593de42b8ac448b6144cf13a6c5f3f8bd8 100644 (file)
@@ -7,8 +7,7 @@
 #
 my $self = shift;
 my $l = shift;
-$l = 20 if $l == 0;
-$l = 10 if $l < 10;
+$l = 10 if $l < 10 && $l > 0;
 $self->pagelth($l);
 $self->user->pagelth($l);
 return (1, $self->msg('pagelth', $l));