From bb112a97b01848d7820ee1f40b853d3f23a4ee11 Mon Sep 17 00:00:00 2001 From: f0o Date: Mon, 23 Nov 2015 15:57:43 +0000 Subject: [PATCH] HotFix remove empty transports with keys --- alerts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alerts.php b/alerts.php index d52361101..9d6defca5 100755 --- a/alerts.php +++ b/alerts.php @@ -314,6 +314,9 @@ function ExtTransports($obj) { $tmp = false; // To keep scrutinizer from naging because it doesnt understand eval foreach ($config['alert']['transports'] as $transport => $opts) { + if (is_array($opts)) { + $opts = array_filter($opts); + } if (($opts === true || !empty($opts)) && $opts != false && file_exists($config['install_dir'].'/includes/alerts/transport.'.$transport.'.php')) { echo $transport.' => '; eval('$tmp = function($obj,$opts) { global $config; '.file_get_contents($config['install_dir'].'/includes/alerts/transport.'.$transport.'.php').' return false; };');