mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-08 00:16:24 +00:00
Add missing fields to permit proper restore
This commit is contained in:
parent
065ab9bdee
commit
5bcfeb17c3
@ -151,11 +151,13 @@ class SmsMapper extends Mapper {
|
|||||||
public function getMessages ($userId, $start, $limit) {
|
public function getMessages ($userId, $start, $limit) {
|
||||||
$messageList = array();
|
$messageList = array();
|
||||||
|
|
||||||
$query = \OCP\DB::prepare('SELECT sms_date, sms_msg, sms_type FROM ' .
|
$query = \OCP\DB::prepare('SELECT sms_address, sms_date, sms_msg, sms_type, sms_mailbox FROM ' .
|
||||||
'*PREFIX*ocsms_smsdatas WHERE user_id = ? AND sms_date > ? ORDER BY sms_date LIMIT ?');
|
'*PREFIX*ocsms_smsdatas WHERE user_id = ? AND sms_date > ? ORDER BY sms_date LIMIT ?');
|
||||||
$result = $query->execute(array($userId, $start, $limit));
|
$result = $query->execute(array($userId, $start, $limit));
|
||||||
while ($row = $result->fetchRow()) {
|
while ($row = $result->fetchRow()) {
|
||||||
$messageList[$row["sms_date"]] = array(
|
$messageList[$row["sms_date"]] = array(
|
||||||
|
"address" => $row["sms_address"],
|
||||||
|
"mailbox" => $row["sms_mailbox"],
|
||||||
"msg" => $row["sms_msg"],
|
"msg" => $row["sms_msg"],
|
||||||
"type" => $row["sms_type"]
|
"type" => $row["sms_type"]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user