diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-20 20:42:58 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-20 20:42:58 +0200 |
commit | 4fc9117ddb70b3d62f6672ab3cfe51202f128872 (patch) | |
tree | b0f5a6f282f0427f01a4f8176b5e5a78d366419a /execute.php | |
parent | 9dcde5b501552b63314ca2b142ff2b849c4a023d (diff) |
Remove useless code.
Fix undefined variable.
Fix BIRD commands.
Diffstat (limited to 'execute.php')
-rw-r--r-- | execute.php | 14 |
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; + } } } |