1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Fix array merge key problem

This commit is contained in:
Loic Blot
2014-10-09 18:39:04 +00:00
parent b0ae79b6ff
commit 36cd0d0597
+2 -3
View File
@@ -126,9 +126,8 @@ class SmsController extends Controller {
// 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)
);
$messages = $messages +
$this->smsMapper->getAllMessagesForPhoneNumber($this->userId, $iContacts[$contactName][$i], $lastDate);
}
}
// This case mustn't be reached, but add it.