1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00
This commit is contained in:
Loic Blot 2014-10-09 18:28:18 +02:00
parent 1138512dc8
commit a42f6d7d28

View File

@ -115,11 +115,16 @@ class SmsController extends Controller {
$messages = array();
// Contact resolved
if ($contactName != "") {
$iContacts = $this->app->getInvertedContacts();
$messages = array();
// If there is iContacts (this must be)
if (isset($iContacts[$contactName])) {
$ctPn = count($iContacts[$contactName]);
// We merge each message list into global messagelist
for ($i=0; $i < $ctPn; $i++) {
$messages = array_merge($messages,
$this->smsMapper->getAllMessagesForPhoneNumber($this->userId, $iContacts[$contactName][$i], $lastDate)