Null coalesce exif props explicitly
parent
874379b306
commit
ff29114429
|
@ -183,9 +183,9 @@ class Exif {
|
||||||
* @param array $exif
|
* @param array $exif
|
||||||
*/
|
*/
|
||||||
public static function getDateTaken(File &$file, array &$exif) {
|
public static function getDateTaken(File &$file, array &$exif) {
|
||||||
$dt = $exif['DateTimeOriginal'];
|
$dt = $exif['DateTimeOriginal'] ?? null;
|
||||||
if (!isset($dt) || empty($dt)) {
|
if (!isset($dt) || empty($dt)) {
|
||||||
$dt = $exif['CreateDate'];
|
$dt = $exif['CreateDate'] ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if found something
|
// Check if found something
|
||||||
|
|
Loading…
Reference in New Issue