1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-07-11 16:38:40 +00:00

Little regexp fix

This commit is contained in:
Loic Blot 2016-09-22 21:40:49 +02:00
parent 781fc74c1a
commit debf173673

View File

@ -217,7 +217,7 @@ class SmsController extends Controller {
foreach ($phoneList as $number => $ts) { foreach ($phoneList as $number => $ts) {
$fmtPN = preg_replace("#[ ]#","/", $number); $fmtPN = preg_replace("#[ ]#","/", $number);
if (isset($contactsSrc[$fmtPN])) { if (isset($contactsSrc[$fmtPN])) {
$fmtPN2 = preg_replace("#\/#","", $fmtPN); $fmtPN2 = preg_replace("#[/]#","", $fmtPN);
$contacts[$fmtPN] = $contactsSrc[$fmtPN]; $contacts[$fmtPN] = $contactsSrc[$fmtPN];
$contacts[$fmtPN2] = $contactsSrc[$fmtPN]; $contacts[$fmtPN2] = $contactsSrc[$fmtPN];