2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Removed deprecated ereg_replace

This commit is contained in:
Adam Zammit
2013-03-27 10:51:09 +11:00
parent 9b5ed20422
commit c3e5570444
3 changed files with 3 additions and 3 deletions

View File

@@ -562,7 +562,7 @@ function get_case_id($operator_id, $create = false)
$i = 1;
foreach ($r5 as $r5v)
{
$tnum = ereg_replace('[^0-9]*','',$r5v['phone']);
$tnum = preg_replace("/[^0-9]/", "",$r5v['phone']);
if (empty($tnum)) $tnum = "312345678"; //handle error condition
$sql = "INSERT INTO contact_phone (case_id,priority,phone)
VALUES ($case_id,$i,$tnum)";