if (not defined $start) {
($start) = $pagination =~ /(\d+)/
}
- if ($start > $stop and defined $stop) {
+ if ($start > $stop and defined $stop and length($stop)) {
# this must be a reduced page listing; fix it up
$stop+=$start - $start % 10 ** (int(log($stop)/log(10))+1);
}