Skip to content

Commit

Permalink
fix issue with empty context criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Seel authored and Mark-H committed Oct 10, 2021
1 parent 7022bcf commit 560fd2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/ExtractCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function extractContent($folder, $options)

// Prepare the criteria for this context
$contextCriteria = ($criteria) ? $criteria : array();
if (count(array_filter(array_keys($contextCriteria), 'is_string')) > 0) {
if (empty($contextCriteria) || count(array_filter(array_keys($contextCriteria), 'is_string')) > 0) {
// associative array => and conditions
$contextCriteria['context_key'] = $contextKey;
} else {
Expand Down

0 comments on commit 560fd2e

Please sign in to comment.