mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
By preparing the correct query it's better
This commit is contained in:
parent
52b0834b3b
commit
66417419c3
@ -31,7 +31,7 @@ class SmsMapper extends Mapper {
|
||||
$query = \OC_DB::prepare('INSERT INTO *PREFIX*ocsms_smsdatas ' .
|
||||
'(user_id, added, lastmodified, sms_flags, sms_date, sms_id,' .
|
||||
'sms_address, sms_msg, sms_mailbox) VALUES ' .
|
||||
'(?,?,?,?,?,?,?,?)');
|
||||
'(?,?,?,?,?,?,?,?,?)');
|
||||
$result = $query->execute(array(
|
||||
$userId, "NOW()", "NOW()", $smsFlags,
|
||||
(int) $sms["date"], (int) $sms["_id"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user