diff --git a/Classes/FlowQuery/Operations/FilterByCategoriesOperation.php b/Classes/FlowQuery/Operations/FilterByCategoriesOperation.php index cfd4539..1e92b70 100644 --- a/Classes/FlowQuery/Operations/FilterByCategoriesOperation.php +++ b/Classes/FlowQuery/Operations/FilterByCategoriesOperation.php @@ -23,7 +23,7 @@ class FilterByCategoriesOperation extends FilterByReferencesOperation public function evaluate(FlowQuery $flowQuery, array $arguments) { if (!is_array($arguments[0])) { - $arguments[1] = [ $arguments[1] ]; + $arguments[0] = [ $arguments[0] ]; } $context = \array_filter($flowQuery->getContext(), $this->getReferenceFilter('categories', $arguments[0])); diff --git a/Classes/FlowQuery/Operations/FilterByTagsOperation.php b/Classes/FlowQuery/Operations/FilterByTagsOperation.php index f86fed3..80b21d3 100644 --- a/Classes/FlowQuery/Operations/FilterByTagsOperation.php +++ b/Classes/FlowQuery/Operations/FilterByTagsOperation.php @@ -23,7 +23,7 @@ class FilterByTagsOperation extends FilterByReferencesOperation public function evaluate(FlowQuery $flowQuery, array $arguments) { if (!is_array($arguments[0])) { - $arguments[1] = [ $arguments[1] ]; + $arguments[0] = [ $arguments[0] ]; } $context = \array_filter($flowQuery->getContext(), $this->getReferenceFilter('tags', $arguments[0]));