Skip to content

Commit 4a61dd8

Browse files
Christian SeelMark-H
authored andcommitted
fix issue with empty context criteria
1 parent 42608f6 commit 4a61dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/ExtractCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function extractContent($folder, $options)
109109

110110
// Prepare the criteria for this context
111111
$contextCriteria = ($criteria) ? $criteria : array();
112-
if (count(array_filter(array_keys($contextCriteria), 'is_string')) > 0) {
112+
if (empty($contextCriteria) || count(array_filter(array_keys($contextCriteria), 'is_string')) > 0) {
113113
// associative array => and conditions
114114
$contextCriteria['context_key'] = $contextKey;
115115
} else {

0 commit comments

Comments
 (0)