HotFix remove empty transports with keys

This commit is contained in:
f0o
2015-11-23 15:57:43 +00:00
parent 5f4acdc64e
commit bb112a97b0

View File

@ -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; };');