mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Allow for numbers starting with 0 to be included
This commit is contained in:
@@ -413,7 +413,7 @@ function add_case($sample_id,$questionnaire_id,$operator_id = "NULL",$testing =
|
|||||||
$tnum = preg_replace("/[^0-9]/", "",$r5v['phone']);
|
$tnum = preg_replace("/[^0-9]/", "",$r5v['phone']);
|
||||||
if (empty($tnum)) $tnum = "88888888"; //handle error condition
|
if (empty($tnum)) $tnum = "88888888"; //handle error condition
|
||||||
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
|
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
|
||||||
VALUES ($case_id,$i,$tnum,'')";
|
VALUES ($case_id,$i,'$tnum','')";
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user