From 08ab0a51e77e99f0318ebd198d9569679e4a24f8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 3 Jan 2015 18:15:22 +0100 Subject: Ignore exif_read_data warnings/errors This can throw warnings while also returning orientation info (amongst others). The rest of the code can handle missing values just fine so whatever. I give up. Signed-off-by: Florian Pritz --- application/libraries/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/libraries') diff --git a/application/libraries/Image.php b/application/libraries/Image.php index 7366f750b..32c4717e9 100644 --- a/application/libraries/Image.php +++ b/application/libraries/Image.php @@ -55,7 +55,7 @@ class Image { // http://stackoverflow.com/a/8864064 return false; } - return exif_read_data($file); + return @exif_read_data($file); break; default: } -- cgit v1.2.3-24-g4f1b