2
0
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:
Adam Zammit
2016-09-26 14:29:19 +10:00
parent 9d13db42e9
commit 542dee052a

View File

@@ -413,7 +413,7 @@ function add_case($sample_id,$questionnaire_id,$operator_id = "NULL",$testing =
$tnum = preg_replace("/[^0-9]/", "",$r5v['phone']);
if (empty($tnum)) $tnum = "88888888"; //handle error condition
$sql = "INSERT INTO contact_phone (case_id,priority,phone,description)
VALUES ($case_id,$i,$tnum,'')";
VALUES ($case_id,$i,'$tnum','')";
$db->Execute($sql);
$i++;
}