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

Fix number with spaces issue into peerlist

* Also factorize one function
This commit is contained in:
Loic Blot
2014-10-22 12:38:36 +00:00
parent f94d3ea277
commit 621383e996
3 changed files with 19 additions and 18 deletions
+3 -2
View File
@@ -94,8 +94,9 @@ class SmsController extends Controller {
$countPhone = count($phoneList);
for ($i=0; $i < $countPhone; $i++) {
if (isset($contactsSrc[$phoneList[$i]])) {
$contacts[$phoneList[$i]] = $contactsSrc[$phoneList[$i]];
$fmtPN = preg_replace("#[ ]#","/", $phoneList[$i]);
if (isset($contactsSrc[$fmtPN])) {
$contacts[$fmtPN] = $contactsSrc[$fmtPN];
}
}
// @ TODO: filter correctly