diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-06 21:18:53 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-12-06 21:18:53 +0100 |
commit | cdb983cfa7da19294ab82993aa073f0116026e9a (patch) | |
tree | 1b6229b0f58d5ed116077c22190ec464d1e7c67c /application | |
parent | 472376358c284a010d00348367b57117b4282036 (diff) |
libraries\Image::get_exif: Fix undefined index error
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r-- | application/libraries/Image.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |