1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix an index problem on contact UIDs

This fixes issue #178
This commit is contained in:
Loic Blot 2017-05-06 08:25:33 +02:00
parent db70056825
commit 5a653a0ac4

View File

@ -226,7 +226,9 @@ class SmsController extends Controller {
$fmtPN = preg_replace("#[ ]#","", $number);
if (isset($contactsSrc[$fmtPN])) {
$contacts[$fmtPN] = $contactsSrc[$fmtPN];
$uids[$fmtPN] = $uidsSrc[$fmtPN];
if (isset($uidsSrc[$fmtPN])) {
$uids[$fmtPN] = $uidsSrc[$fmtPN];
}
if (isset($photosSrc[$contacts[$fmtPN]])) {
$photos[$contacts[$fmtPN]] = $photosSrc[$contacts[$fmtPN]];