1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 12:11:26 +02:00

Merge pull request #33 from mattcannon/master

Fixed issue with exif throwing a warning if no exif data is returned
This commit is contained in:
Oliver Vogel
2013-09-25 08:05:36 -07:00

View File

@@ -1439,7 +1439,7 @@ class Image
$data = exif_read_data($this->dirname .'/'. $this->basename, 'EXIF', false);
if (! is_null($key)) {
if (! is_null($key) && is_array($data)) {
return array_key_exists($key, $data) ? $data[$key] : null;
}