From c052cd0f97959a93bf15184829b08ea1b3482078 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 27 Apr 2008 09:45:29 -0700 Subject: suppress error message from exif_read_data Signed-off-by: Arun Persaud --- phpfspot.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index 943c57a..d365588 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1610,7 +1610,7 @@ class PHPFSPOT { */ public function get_meta_informations($file) { - return exif_read_data($file); + return @exif_read_data($file); } // get_meta_informations() -- cgit v1.2.3-18-g5258 From efcad252edb0893cadb647092c3ba27c0be76d3f Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 27 Apr 2008 09:46:28 -0700 Subject: wrong argument to get_mime_info function Signed-off-by: Arun Persaud --- phpfspot.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index d365588..eba23ca 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -3004,7 +3004,7 @@ class PHPFSPOT { */ public function get_mime_info($file) { - $details = getimagesize($orig_image); + $details = getimagesize($file); /* if getimagesize() returns empty, try at least to find out the mime type. -- cgit v1.2.3-18-g5258