From 39fc707029cbe47146eef7eaa2ef444998939802 Mon Sep 17 00:00:00 2001 From: Franzz Date: Mon, 25 Apr 2022 19:08:21 +0200 Subject: [PATCH] Fix image upload without exif data --- inc/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Media.php b/inc/Media.php index 98df88d..5ee2ad7 100644 --- a/inc/Media.php +++ b/inc/Media.php @@ -124,7 +124,7 @@ class Media extends PhpObject { $asDbInfo = array( Db::getId(Project::PROJ_TABLE) => $this->oProject->getProjectId(), 'filename' => $sMediaName, - 'taken_on' => ($asMediaInfo['taken_ts'] > 0)?date(Db::TIMESTAMP_FORMAT, $asMediaInfo['taken_ts']):0, + 'taken_on' => ($asMediaInfo['taken_ts'] > 0)?date(Db::TIMESTAMP_FORMAT, $asMediaInfo['taken_ts']):'0000-00-00 00:00:00', 'posted_on' => date(Db::TIMESTAMP_FORMAT, $asMediaInfo['file_ts']), 'timezone' => $asMediaInfo['timezone'], 'width' => $asMediaInfo['width'],