Skip to content

Commit 7638eaa

Browse files
author
Scott Pringle
committed
Updated test to continue rather than update the value
1 parent 823e994 commit 7638eaa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/PHPExif/Mapper/Exiftool.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function mapRawData(array $data)
139139
try {
140140
$value = new DateTime($value);
141141
} catch (\Exception $exception) {
142-
$value = false;
142+
continue 2;
143143
}
144144
break;
145145
case self::EXPOSURETIME:
@@ -158,10 +158,7 @@ public function mapRawData(array $data)
158158
}
159159

160160
// set end result
161-
if ($value !== false) {
162-
// Only map data when it does not equal a false value
163-
$mappedData[$key] = $value;
164-
}
161+
$mappedData[$key] = $value;
165162
}
166163

167164
// add GPS coordinates, if available

0 commit comments

Comments
 (0)