diff --git a/db/smsmapper.php b/db/smsmapper.php index 65bd0ef..eea2aec 100644 --- a/db/smsmapper.php +++ b/db/smsmapper.php @@ -263,12 +263,13 @@ class SmsMapper extends Mapper { $userId, (int) $sms["_id"] )); } + $now = date("Y-m-d H:i:s"); $query = \OCP\DB::prepare('INSERT INTO *PREFIX*ocsms_smsdatas ' . '(user_id, added, lastmodified, sms_flags, sms_date, sms_id,' . 'sms_address, sms_msg, sms_mailbox, sms_type) VALUES ' . '(?,?,?,?,?,?,?,?,?,?)'); $result = $query->execute(array( - $userId, "NOW()", "NOW()", $smsFlags, + $userId, $now, $now, $smsFlags, $sms["date"], (int) $sms["_id"], $sms["address"], $sms["body"], (int) $sms["mbox"], (int) $sms["type"]