1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-12 00:42:59 +00:00

Fix use of insert statement without named parameter. Convert SMS upload/insert statement to NC14 compatible. (#274)

This commit is contained in:
Matt Amos
2018-10-01 19:20:51 +01:00
committed by Loïc Blot
parent 5b72503296
commit 0e99d33f9e
2 changed files with 17 additions and 15 deletions
+3 -3
View File
@@ -69,9 +69,9 @@ class ConversationStateMapper extends Mapper {
$qb = $this->db->getQueryBuilder();
$qb->insert('ocsms_conversation_read_states')
->values(array(
'user_id' => $userId,
'phone_number' => $phoneNumber,
'int_date' => $lastDate
'user_id' => $qb->createNamedParameter($userId),
'phone_number' => $qb->createNamedParameter($phoneNumber),
'int_date' => $qb->createNamedParameter($lastDate)
));
$this->db->commit();
}