Protect against empty list of reconciliation keys

SVN:1.2[1818]
This commit is contained in:
Denis Flaven
2012-01-30 17:38:45 +00:00
parent d9d84703ae
commit cddeab2c90

View File

@@ -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;
}