fix filter

This commit is contained in:
DavidBadura 2015-05-02 12:35:50 +00:00
parent abdfa6db5a
commit b31a76ef9a
1 changed files with 3 additions and 1 deletions

View File

@ -169,8 +169,10 @@ class Taskwarrior
$parts[] = $option; $parts[] = $option;
} }
$filter = array_filter((array)$filter, 'trim');
if ($filter) { if ($filter) {
foreach((array)$filter as $f) { foreach($filter as $f) {
$parts[] = "( " . $f . ' )'; $parts[] = "( " . $f . ' )';
} }
} }