summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAndrej Rode <mail@andrejro.de>2017-08-16 01:31:53 +0200
committerAndrej Rode <mail@andrejro.de>2017-08-16 01:31:53 +0200
commiteeae07e625890cee9a3cb90ee87e07530b7bf192 (patch)
treebc6c2e6256d66454ebf36ee1967e1650faf8d7b3 /includes
parent5f305121a4fb6a21bedcd82d845909aed38cec0c (diff)
add edited_at_timestamp to shift creation to fix mysql error
Diffstat (limited to 'includes')
-rw-r--r--includes/model/Shifts_model.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php
index 29156423..baaf4c28 100644
--- a/includes/model/Shifts_model.php
+++ b/includes/model/Shifts_model.php
@@ -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;