N°7052 synchro_import.php: fix undefined offset notices (#583)

Regression brought by #269
This commit is contained in:
Pierre Goiffon
2024-02-14 09:53:31 +01:00
committed by GitHub
parent b0634c9fbc
commit 51d0d16a11

View File

@@ -469,6 +469,8 @@ try
$aIsBinaryToTransform = array();
foreach ($aInputColumns as $iFieldId => $sInputColumn)
{
$aIsBinaryToTransform[$iFieldId] = false;
if (array_key_exists($sInputColumn, $aDateColumns))
{
$aIsDateToTransform[$iFieldId] = $aDateColumns[$sInputColumn]; // either DATE or DATETIME
@@ -488,7 +490,8 @@ try
{
throw new ExchangeException("Unknown column '$sInputColumn' (class: '$sClass')");
}
$aIsBinaryToTransform[$iFieldId] = $aColumns[$sInputColumn] === 'LONGBLOB';
$aIsBinaryToTransform[$iFieldId] = ($aColumns[$sInputColumn] === 'LONGBLOB');
}
if (!isset($iPrimaryKeyCol))
{