Internal: fixed the verb DBObjectSearch::IsAny

SVN:trunk[3886]
This commit is contained in:
Romain Quetiez
2016-01-26 14:49:37 +00:00
parent e1409ba39c
commit 3cfcbeb654
2 changed files with 9 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<?php
// Copyright (C) 2010-2015 Combodo SARL
// Copyright (C) 2010-2016 Combodo SARL
//
// This file is part of iTop.
//
@@ -20,7 +20,7 @@
/**
* General definition of an expression tree (could be OQL, SQL or whatever)
*
* @copyright Copyright (C) 2010-2015 Combodo SARL
* @copyright Copyright (C) 2010-2016 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*/
@@ -215,6 +215,10 @@ class BinaryExpression extends Expression
{
if ($this->m_oLeftExpr->IsTrue() && $this->m_oRightExpr->IsTrue()) return true;
}
elseif ($this->m_sOperator == 'OR')
{
if ($this->m_oLeftExpr->IsTrue() || $this->m_oRightExpr->IsTrue()) return true;
}
return false;
}