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:
parent
781fc74c1a
commit
debf173673
@ -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];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user