mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user