mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Protect against empty list of reconciliation keys
SVN:1.2[1818]
This commit is contained in:
@@ -347,6 +347,7 @@ try
|
||||
$aMoreReconciliationKeys = array(); // Store: key => void to automatically remove duplicates
|
||||
foreach($aReconciliationKeys as $sAttCode)
|
||||
{
|
||||
if (!MetaModel::IsValidAttCode($sClassName, $sAttCode)) continue;
|
||||
$oAttDef = MetaModel::GetAttributeDef($sClassName, $sAttCode);
|
||||
if ($oAttDef->IsExternalKey())
|
||||
{
|
||||
@@ -403,7 +404,7 @@ EOF
|
||||
}
|
||||
else
|
||||
{
|
||||
$oPage = new ajax_page("");
|
||||
$oPage = new ajax_page("Class $sClassName is not a valid class !");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user