From 0a667a63ba0e62e9b26a28d87fa537b8f4f4044c Mon Sep 17 00:00:00 2001 From: Christian Seel Date: Fri, 2 Sep 2016 12:52:04 +0200 Subject: [PATCH] fix issue with empty context criteria --- src/Command/ExtractCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {