]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
avoid a warning.
authorPablo Martin <caedes@sindominio.net>
Mon, 5 Nov 2012 08:15:17 +0000 (08:15 +0000)
committerroot <root@ops.vz.lan>
Mon, 5 Nov 2012 08:15:22 +0000 (08:15 +0000)
lib/exif.php

index 8ca0dde0c39cc26ce81e283d0b30e98c7b33abb6..46a73e9206d3cd0fc51fac1950b37412f183b808 100644 (file)
@@ -24,7 +24,7 @@ function td_get_exif($image) {
 
        $filename = $image->getFilenameOnFilestore();
        $exif = exif_read_data($filename, 'IFD0,EXIF', true);
-       if (is_array($exif)) {
+       if (is_array($exif) && isset($exif['EXIF'])) {
                $data = array_merge($exif['IFD0'], $exif['EXIF']);
                foreach ($data as $key => $value) {
                        if (is_string($value)) {