Skip to content

Commit

Permalink
BugFix: Exception occur when IFD0 is null
Browse files Browse the repository at this point in the history
  • Loading branch information
HamedDarragi committed Apr 11, 2022
1 parent d809b90 commit 7aadb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Image/Metadata/Ifd0MetadataReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,6 @@ private function extract(string $path): array
$metadata = false;
}

return $metadata ? $metadata['IFD0'] : [];
return ($metadata && is_array($metadata['IFD0'])) ? $metadata['IFD0'] : [];
}
}

0 comments on commit 7aadb6f

Please sign in to comment.