summaryrefslogtreecommitdiffstats
path: root/phpfspot_img.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot_img.php')
-rw-r--r--phpfspot_img.php4
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.
*/