add edited_at_timestamp to shift creation to fix mysql error

This commit is contained in:
Andrej Rode 2017-08-16 01:31:53 +02:00
parent 5f305121a4
commit eeae07e625
1 changed files with 1 additions and 0 deletions

View File

@ -334,6 +334,7 @@ function Shift_create($shift) {
`URL`=" . sql_null($shift['URL']) . ",
`PSID`=" . sql_null($shift['PSID']) . ",
`created_by_user_id`='" . sql_escape($user['UID']) . "',
`edited_at_timestamp`=" . time() .",
`created_at_timestamp`=" . time());
if ($result === false) {
return false;