Skip to content

Commit

Permalink
fix for array missing key warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Nov 10, 2020
1 parent e274096 commit 0ca8abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/metadata/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public function storeMoreMetaData( $meta, $file, $image_type, $iptc, $exif ) {
//pp_api::debug($iptc);
//pp_api::debug($exif);

if ( $exif['Make'] && $exif['Model'] ) {
if ( array_key_exists('Make', $exif) && $exif['Make'] && array_key_exists('Model', $exif) && $exif['Model'] ) {

$meta['camera'] = $exif['Make'] . ' ' . $exif['Model'];
}
Expand Down

0 comments on commit 0ca8abb

Please sign in to comment.