mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00: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:
@@ -25,7 +25,7 @@ if ($handle = opendir($rrddir)) {
|
||||
foreach ($files as $id => $file) {
|
||||
$hostname = eregi_replace('app-shoutcast-'.$app['app_id'].'-', '', $file);
|
||||
$hostname = eregi_replace('.rrd', '', $hostname);
|
||||
list($host, $port) = split('_', $hostname, 2);
|
||||
list($host, $port) = explode('_', $hostname, 2);
|
||||
$rrd_filenames[] = $rrddir.'/'.$file;
|
||||
$rrd_list[$i]['filename'] = $rrddir.'/'.$file;
|
||||
$rrd_list[$i]['descr'] = $host.':'.$port;
|
||||
|
Reference in New Issue
Block a user