From da87c070b9cadab2bc47c53fb35cec7261e76fdb Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Sep 2013 12:15:51 +1000 Subject: [PATCH] Make sure to only convert number fields to numbers (otherwise will blank out state field/etc) --- functions/functions.import.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/functions.import.php b/functions/functions.import.php index 622dc986..6705f439 100644 --- a/functions/functions.import.php +++ b/functions/functions.import.php @@ -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`