Skip to content

Commit

Permalink
Fix: fxied silly array index error 😖
Browse files Browse the repository at this point in the history
  • Loading branch information
breadlesscode committed Jun 12, 2019
1 parent 292640e commit 6be8dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down
2 changes: 1 addition & 1 deletion Classes/FlowQuery/Operations/FilterByTagsOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]));
Expand Down

0 comments on commit 6be8dbf

Please sign in to comment.