Fixed typo causing a warning on some PHP compilations

SVN:trunk[784]
This commit is contained in:
Romain Quetiez
2010-09-06 16:47:14 +00:00
parent 49d96e503f
commit a9bfaee2ef

View File

@@ -1325,7 +1325,7 @@ EOF
{
$bMandatory = false;
$aAllowedValues = MetaModel::GetAllowedValues_att($sClass, $sAttCode, $aArgs);
if ($aArgs['default'][$sAttCode])
if (isset($aArgs['default'][$sAttCode]))
{
$oObj->Set($sAttCode, $aArgs['default'][$sAttCode]);
}