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