diff --git a/inc/dbmysqliterator.class.php b/inc/dbmysqliterator.class.php index 85692ef5eaa..13bba6cfc8b 100644 --- a/inc/dbmysqliterator.class.php +++ b/inc/dbmysqliterator.class.php @@ -561,7 +561,7 @@ public function analyseCrit ($crit, $bool = "AND") { $ret .= $value->getQuery(); } else { // No Key case => recurse. - $ret .= "(" . $this->analyseCrit($value, $bool) . ")"; + $ret .= "(" . $this->analyseCrit($value) . ")"; } } else if (($name === "OR") || ($name === "AND")) { @@ -570,7 +570,7 @@ public function analyseCrit ($crit, $bool = "AND") { } else if ($name === "NOT") { // Uninary logicial operator - $ret .= " NOT (" . $this->analyseCrit($value, "AND") . ")"; + $ret .= " NOT (" . $this->analyseCrit($value) . ")"; } else if ($name === "FKEY" || $name === 'ON') { // Foreign Key condition