1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-12 10:26:31 +00:00

Fix getAllMessagesForPhoneNumber

This commit is contained in:
Loic Blot 2014-09-16 20:48:33 +00:00
parent 4e82141eb7
commit 86f4fb3910

View File

@ -73,7 +73,10 @@ class SmsMapper extends Mapper {
$messageList = array(); $messageList = array();
while($row = $result->fetchRow()) { while($row = $result->fetchRow()) {
array_push($messageList[$row["sms_date"]], $row); $messageList[$row["sms_date"]] = array(
"msg" => $row["sms_msg"],
"type" => $row["sms_type"]
);
} }
ksort($messageList); ksort($messageList);
return $messageList; return $messageList;