mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Make sure to only convert number fields to numbers (otherwise will blank out state field/etc)
This commit is contained in:
@@ -257,7 +257,10 @@ function import_file($file, $description, $fields, $firstrow = 2)
|
||||
{
|
||||
$dkey = only_numbers($data[$key - 1]);
|
||||
if (!empty($dkey))
|
||||
{
|
||||
$data[$key - 1] = $dkey;
|
||||
$numberavail = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -287,7 +290,7 @@ function import_file($file, $description, $fields, $firstrow = 2)
|
||||
if (!empty($tname))
|
||||
{
|
||||
|
||||
$value = $db->Quote(only_numbers($data[$key - 1]));
|
||||
$value = $db->Quote($data[$key - 1]);
|
||||
|
||||
$sql = "SELECT Time_zone_name as tz
|
||||
FROM `$tname`
|
||||
|
||||
Reference in New Issue
Block a user