diff --git a/src/Command/ExtractCommand.php b/src/Command/ExtractCommand.php index ebb7301..eb66836 100644 --- a/src/Command/ExtractCommand.php +++ b/src/Command/ExtractCommand.php @@ -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 {