Split is removed in PHP7, replace with explode as none were using it as a regex.

Also fix two array keys without quotes in include/syslog.php
Fixes #2205
This commit is contained in:
Tony Murray
2016-02-25 14:34:06 -06:00
parent d9dcebb878
commit 9f22b18dc8
25 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -63,7 +63,7 @@
$servers = file($config);
$data = array();
foreach ($servers as $item=>$server) {
list($host, $port) = split(":", $server, 2);
list($host, $port) = explode(":", $server, 2);
array_push($data, get_data(trim($host), trim($port)));
}
return $data;