1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-07-23 01:45:43 +00:00

Remove integer cast on date. This fix an integer overflow on 32 bits systems

This commit is contained in:
Ner'zhul 2014-12-09 16:26:53 +01:00
parent df95014fc6
commit 7c0bd22385

View File

@ -260,7 +260,7 @@ class SmsMapper extends Mapper {
'(?,?,?,?,?,?,?,?,?,?)');
$result = $query->execute(array(
$userId, "NOW()", "NOW()", $smsFlags,
(int) $sms["date"], (int) $sms["_id"],
$sms["date"], (int) $sms["_id"],
$sms["address"], $sms["body"], (int) $sms["mbox"],
(int) $sms["type"]
));