cleanup only

This commit is contained in:
zotlabs
2017-05-31 22:59:07 -07:00
parent e6581aa09c
commit cdfcb1ed24
2 changed files with 9 additions and 10 deletions

View File

@@ -252,11 +252,10 @@ abstract class photo_driver {
*/
if(! $this->is_valid())
return FALSE;
return false;
if((! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg'))
return;
return false;
$exif = @exif_read_data($filename,null,true);