Fixed condition group bug.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8394 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-05-23 14:45:00 +00:00
parent c40ccf777f
commit 4d2d18b53b
9 changed files with 178 additions and 19 deletions

View file

@ -11,12 +11,17 @@
function toString(){
if($this->pipe !== "")
$group = $this->pipe .'(';
$group = $this->pipe .' (';
else $group = '';
$cond_indx = 0;
foreach($this->conditions as $condition){
if($condition->show())
if($condition->show()){
if($cond_indx === 0) $condition->setPipe("");
$group .= $condition->toString() . ' ';
$cond_indx++;
}
}
if($this->pipe !== "")