diff --git a/core/lib/Drupal/Core/Database/Query/Condition.php b/core/lib/Drupal/Core/Database/Query/Condition.php index 8dee80f..0f2e1a6 100644 --- a/core/lib/Drupal/Core/Database/Query/Condition.php +++ b/core/lib/Drupal/Core/Database/Query/Condition.php @@ -77,7 +77,7 @@ public function condition($field, $value = NULL, $operator = NULL) { $operator = '='; } } - if (is_array($value) && empty($value)) { + if (empty($value) && is_array($value)) { throw new InvalidQueryException(sprintf("Query condition '%s %s ()' cannot be empty.", $field, $operator)); }