mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-08 00:16:24 +00:00
Comments
This commit is contained in:
parent
1138512dc8
commit
a42f6d7d28
@ -115,11 +115,16 @@ class SmsController extends Controller {
|
|||||||
|
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
|
||||||
|
// Contact resolved
|
||||||
if ($contactName != "") {
|
if ($contactName != "") {
|
||||||
$iContacts = $this->app->getInvertedContacts();
|
$iContacts = $this->app->getInvertedContacts();
|
||||||
$messages = array();
|
$messages = array();
|
||||||
|
|
||||||
|
// If there is iContacts (this must be)
|
||||||
if (isset($iContacts[$contactName])) {
|
if (isset($iContacts[$contactName])) {
|
||||||
$ctPn = count($iContacts[$contactName]);
|
$ctPn = count($iContacts[$contactName]);
|
||||||
|
|
||||||
|
// We merge each message list into global messagelist
|
||||||
for ($i=0; $i < $ctPn; $i++) {
|
for ($i=0; $i < $ctPn; $i++) {
|
||||||
$messages = array_merge($messages,
|
$messages = array_merge($messages,
|
||||||
$this->smsMapper->getAllMessagesForPhoneNumber($this->userId, $iContacts[$contactName][$i], $lastDate)
|
$this->smsMapper->getAllMessagesForPhoneNumber($this->userId, $iContacts[$contactName][$i], $lastDate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user