From: Steinar H. Gunderson Date: Thu, 12 Apr 2007 00:14:37 +0000 (+0200) Subject: Off-by-one. Fix. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=d2b8ad4b4e6664ae9d5f44276bdf1d4331dc931b;ds=sidebyside Off-by-one. Fix. --- diff --git a/perl/Sesse/pr0n/Index.pm b/perl/Sesse/pr0n/Index.pm index 754c988..e91d9c1 100644 --- a/perl/Sesse/pr0n/Index.pm +++ b/perl/Sesse/pr0n/Index.pm @@ -201,7 +201,7 @@ sub handler { my $toclose = 0; my $lastupl = ""; - my $img_num = (defined($start) && defined($num)) ? $start : 0; + my $img_num = (defined($start) && defined($num)) ? $start : 1; # Print out all thumbnails if ($rot == 1) {