Uploading of new photos now fully working.
This commit is contained in:
@@ -194,7 +194,7 @@ class Asset
|
||||
unset($image);
|
||||
|
||||
$exif = EXIF::fromFile($destination);
|
||||
$date_captured = intval($exif->created_timestamp);
|
||||
$date_captured = $exif->created_timestamp > 0 ? $exif->created_timestamp : time();
|
||||
}
|
||||
|
||||
$db = Registry::get('db');
|
||||
|
||||
Reference in New Issue
Block a user