@@ -1324,8 +1324,9 @@ |
||
1324 | 1324 | } |
1325 | 1325 | |
1326 | 1326 | // Only the whereExpression could be evaluated in a deferred manner |
1327 | - if ($criteria->getWhereExpression()) |
|
1328 | - $this->deferredCriteria[] = clone $criteria; |
|
1327 | + if ($criteria->getWhereExpression()) { |
|
1328 | + $this->deferredCriteria[] = clone $criteria; |
|
1329 | + } |
|
1329 | 1330 | |
1330 | 1331 | if ($criteria->getOrderings()) { |
1331 | 1332 | foreach ($criteria->getOrderings() as $sort => $order) { |