1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-10 17:36:21 +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();
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);
return $messageList;