From a1f5d8041e64e64c3ea68a46963b725f7278c0c7 Mon Sep 17 00:00:00 2001 From: rquetiez Date: Thu, 13 Aug 2020 21:49:30 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03251=20(see=20also=20PR#152)=20-=20CSV?= =?UTF-8?q?=20data=20synchro=20allows=20""=20to=20be=20interpreted?= =?UTF-8?q?=20as=20"Let=20the=20attribute=20unchanged=20for=20the=20curren?= =?UTF-8?q?t=20row"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- synchro/synchro_import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synchro/synchro_import.php b/synchro/synchro_import.php index 84b905fc0..5c08f57ba 100644 --- a/synchro/synchro_import.php +++ b/synchro/synchro_import.php @@ -534,9 +534,9 @@ try $aValues = array(); // Used to build the insert query foreach ($aRow as $iCol => $value) { - if ($value === null) + if ($value === null) // Source CSV: "" { - $aValues[] = 'NULL'; + $aValues[] = null; } elseif ($aIsDateToTransform[$iCol] !== false) {