diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-09-20 16:03:59 +0200 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-09-20 17:25:53 +0200 |
commit | 37d9c8bf7eb7c4244f93d9ed780333ec1fa4ae86 (patch) | |
tree | 66c8329c67fde6b08b6c8a7b74bd0d6dc6c43d44 /phpfspot_img.php | |
parent | 4712f548702a1a7f9ad86360ebd1fa44356791a3 (diff) |
show meaningful error message for invalid width, resolves #74
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'phpfspot_img.php')
-rw-r--r-- | phpfspot_img.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpfspot_img.php b/phpfspot_img.php index 5ef76b4..bb7e93f 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. */ |