1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Add support for SMS types

This commit is contained in:
Loïc Blot (@U-Exp)
2014-09-12 20:12:18 +02:00
parent dfbee0fac1
commit a8ff01b999
4 changed files with 17 additions and 5 deletions
+4 -3
View File
@@ -30,12 +30,13 @@ 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 ' .
'(?,?,?,?,?,?,?,?,?)');
'sms_address, sms_msg, sms_mailbox, sms_type) VALUES ' .
'(?,?,?,?,?,?,?,?,?,?)');
$result = $query->execute(array(
$userId, "NOW()", "NOW()", $smsFlags,
(int) $sms["date"], (int) $sms["_id"],
$sms["address"], $sms["body"], (int) $sms["mbox"]
$sms["address"], $sms["body"], (int) $sms["mbox"],
(int) $sms["type"]
));
}
}