2
0
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:
root
2013-09-11 12:15:51 +10:00
parent 60df5f2e75
commit da87c070b9

View File

@@ -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`