summaryrefslogtreecommitdiff
path: root/execute.php
diff options
context:
space:
mode:
Diffstat (limited to 'execute.php')
-rw-r--r--execute.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/execute.php b/execute.php
index 6a5cd45..a6f0a15 100644
--- a/execute.php
+++ b/execute.php
@@ -35,12 +35,14 @@ function process_output($output) {
$valid = true;
- foreach ($config['filters'] as $filter) {
- // Line has been marked as invalid
- // Or filtered based on the configuration
- if (!$valid || (preg_match($filter, $line) === 1)) {
- $valid = false;
- break;
+ if (isset($config['filters'])) {
+ foreach ($config['filters'] as $filter) {
+ // Line has been marked as invalid
+ // Or filtered based on the configuration
+ if (!$valid || (preg_match($filter, $line) === 1)) {
+ $valid = false;
+ break;
+ }
}
}