summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/libraries/Image.php2
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;