Protect against empty list of reconciliation keys

SVN:trunk[1819]
This commit is contained in:
Denis Flaven
2012-01-30 17:41:01 +00:00
parent 17f3318d63
commit a8f53294a9

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