|
|
@@ -755,9 +755,6 @@ class Query implements ExpressionInterface, IteratorAggregate
|
|
|
*/
|
|
|
public function where($conditions = null, $types = [], $overwrite = false)
|
|
|
{
|
|
|
- if (empty($conditions)) {
|
|
|
- return $this;
|
|
|
- }
|
|
|
if ($overwrite) {
|
|
|
$this->_parts['where'] = $this->newExpr();
|
|
|
}
|
|
|
@@ -1646,6 +1643,9 @@ class Query implements ExpressionInterface, IteratorAggregate
|
|
|
*/
|
|
|
protected function _conjugate($part, $append, $conjunction, $types)
|
|
|
{
|
|
|
+ if (empty($append)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
$expression = $this->_parts[$part] ?: $this->newExpr();
|
|
|
|
|
|
if (!is_string($append) && is_callable($append)) {
|