mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-10 17:36:21 +00:00
Fix getAllMessagesForPhoneNumber
This commit is contained in:
parent
4e82141eb7
commit
86f4fb3910
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user