diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index f7b0039625..b268db12e1 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -1654,6 +1654,8 @@ class baseSQL */ public function set($set) { + if($this->inCondition and !$this->conditionIsTrue) return $this; + /* Add ` to avoid keywords of mysql. */ if(strpos($set, '=') ===false) {