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

SVN:trunk[3344]
This commit is contained in:
Denis Flaven
2014-09-17 15:41:35 +00:00
parent 55c818b6b7
commit 82a8a0bba7
2 changed files with 6 additions and 8 deletions

View File

@@ -299,13 +299,8 @@ class BinaryExpression extends Expression
{
$aResult[$this->m_oRightExpr->GetParent()][$this->m_oRightExpr->GetName()] = $this->m_oLeftExpr;
}
else
{
// Strictly, this should be removed
$aResult = array_merge_recursive($this->m_oRightExpr->ListConstantFields(), $this->m_oLeftExpr->ListConstantFields());
}
}
else
else if ($this->m_sOperator == 'AND')
{
// Strictly, this should be done only for the AND operator
$aResult = array_merge_recursive($this->m_oRightExpr->ListConstantFields(), $this->m_oLeftExpr->ListConstantFields());