#932: fixed a regression introduced by [r3319]... in case a criteria is present several times, retrofit from trunk.

SVN:2.0.2[3346]
This commit is contained in:
Denis Flaven
2014-09-17 15:44:09 +00:00
parent d4fbc3dc4f
commit c6d6e85b3d
2 changed files with 6 additions and 8 deletions

View File

@@ -741,8 +741,11 @@ class DBObjectSet
{
foreach($aVals as $sCode => $oExpr)
{
$oScalarExpr = $oExpr->GetAsScalar($aScalarArgs);
$aConst[$sClassAlias][$sCode] = $oScalarExpr->GetValue();
if (is_object($oExpr)) // Array_merge_recursive creates an array when the same key is present multiple times... ignore them
{
$oScalarExpr = $oExpr->GetAsScalar($aScalarArgs);
$aConst[$sClassAlias][$sCode] = $oScalarExpr->GetValue();
}
}
}
return $aConst;