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.class.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.class.php')
-rw-r--r-- | phpfspot.class.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php index f54a5d6..92c0fd2 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -3780,6 +3780,22 @@ class PHPFSPOT { } // get_photo_version_name() + /** + */ + public function is_valid_width($image_width) + { + if(in_array($image_width, + Array($this->cfg->thumb_width, + $this->cfg->photo_width, + $this->cfg->mini_width, + 30))) + + return true; + + return false; + + } // is_valid_width() + } // class PHPFSPOT ?> |