diff --git a/Database/Orm/Condition.php b/Database/Orm/Condition.php index 8f4e0e2b..64d10194 100644 --- a/Database/Orm/Condition.php +++ b/Database/Orm/Condition.php @@ -76,7 +76,10 @@ trait Condition private function builderWhere($where): string { $_tmp = []; - if (empty($where)) return ''; + if (is_null($where)) { + return ''; + } + if (empty($where) || is_string($where)) return $where; foreach ($where as $key => $value) { $_value = is_string($value) ? $value : $this->conditionMap($value);