From 37d9c8bf7eb7c4244f93d9ed780333ec1fa4ae86 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 20 Sep 2008 16:03:59 +0200 Subject: show meaningful error message for invalid width, resolves #74 Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'phpfspot.class.php') 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 ?> -- cgit v1.2.3-18-g5258