mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7052 synchro_import.php: fix undefined offset notices (#583)
Regression brought by #269
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user