X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot_img.php;h=b6952041dcedc69b0451baac8302aca8363eea62;hp=5ef76b4ea97a9e95c3595ba4c6930846b8f5427c;hb=c26dd6eb3b24421abef1be71435b96aef6fe5548;hpb=6198d8ac0ce0623ebb56dba2fed19e4e759682c0 diff --git a/phpfspot_img.php b/phpfspot_img.php index 5ef76b4..b695204 100644 --- a/phpfspot_img.php +++ b/phpfspot_img.php @@ -87,6 +87,10 @@ class PHPFSPOT_IMG { /* show thumbnail */ else { + if(!$this->parent->is_valid_width($width)) { + $this->parent->showTextImage("Requested width ". $width ."px is not valid!"); + return; + } /* check for an entry if we already handled this photo before. If not, create a thumbnail for it. */ @@ -159,7 +163,7 @@ class PHPFSPOT_IMG { $this->parent->gen_thumb($idx); } - $version = $this->parent­>get_latest_version($idx); + $version = $this->parent->get_latest_version($idx); $fullpath = $this->parent->get_thumb_path($width, $idx, $version); /* if the thumb file does not exist, create it */