diff --git a/packages/extra/src/Querying/ConditionParsers/Drupal/DrupalConditionParser.php b/packages/extra/src/Querying/ConditionParsers/Drupal/DrupalConditionParser.php index 74c58512..6e7cd893 100644 --- a/packages/extra/src/Querying/ConditionParsers/Drupal/DrupalConditionParser.php +++ b/packages/extra/src/Querying/ConditionParsers/Drupal/DrupalConditionParser.php @@ -53,9 +53,8 @@ public function parseCondition($condition): PathsBasedInterface if (array_key_exists(DrupalFilterParser::VALUE, $condition )) { if (!array_key_exists(DrupalFilterParser::OPERATOR, $condition ) - || (array_key_exists(DrupalFilterParser::OPERATOR, $condition ) - && ($condition[DrupalFilterParser::OPERATOR] !== 'IS NULL' - && $condition[DrupalFilterParser::OPERATOR] !== 'IS NOT NULL'))) { + || ($condition[DrupalFilterParser::OPERATOR] !== 'IS NULL' + && $condition[DrupalFilterParser::OPERATOR] !== 'IS NOT NULL')) { return $this->drupalConditionFactory->createConditionWithValue($operatorName, $condition[DrupalFilterParser::VALUE], $path); } }