1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-07-11 08:28:37 +00:00

Little regexp fix

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

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