From: Steinar H. Gunderson Date: Sun, 30 Dec 2007 10:37:01 +0000 (+0100) Subject: Fixed warning. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=913c2202338799ea013021cf4dc56af8132a5463 Fixed warning. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 9708b7a..9874635 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -371,7 +371,7 @@ sub ensure_cached { my ($r, $filename, $id, $dbwidth, $dbheight, $infobox, $xres, $yres, @otherres) = @_; my $fname = get_disk_location($r, $id); - unless (defined($xres) && ($xres < $dbheight || $yres < $dbwidth || !defined($dbwidth) || !defined($dbheight) || $xres == -1)) { + unless (defined($xres) && (!defined($dbwidth) || !defined($dbheight) || $xres < $dbheight || $yres < $dbwidth || $xres == -1)) { return ($fname, 0); }