From cdb983cfa7da19294ab82993aa073f0116026e9a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 6 Dec 2014 21:18:53 +0100 Subject: libraries\Image::get_exif: Fix undefined index error 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 a50209872..7366f750b 100644 --- a/application/libraries/Image.php +++ b/application/libraries/Image.php @@ -50,7 +50,7 @@ class Image { switch ($type) { case IMAGETYPE_JPEG: getimagesize($file, $info); - if (strpos($info["APP1"], "http://ns.adobe.com/xap/1.0/") === 0) { + if (isset($info["APP1"]) && strpos($info["APP1"], "http://ns.adobe.com/xap/1.0/") === 0) { // ignore XMP data which makes exif_read_data throw a warning // http://stackoverflow.com/a/8864064 return false; -- cgit v1.2.3-24-g4f1b