Updated WHERE clause to ignore expressions when the argument value is not set.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8386 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-05-20 09:25:59 +00:00
parent 0f61e5d499
commit 520300fad1
6 changed files with 18 additions and 12 deletions

View file

@ -15,7 +15,8 @@
else $group = '';
foreach($this->conditions as $condition){
$group .= $condition->toString() . ' ';
if($condition->show())
$group .= $condition->toString() . ' ';
}
if($this->pipe !== "")