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:30:40 -06:00
parent d9dcebb878
commit 9f22b18dc8
25 changed files with 26 additions and 26 deletions

View File

@@ -42,7 +42,7 @@ if (isset($total) && $total === true) {
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);
$graphs = array(
'shoutcast_bits' => 'Traffic Statistics - '.$host.' (Port: '.$port.')',
'shoutcast_stats' => 'Shoutcast Statistics - '.$host.' (Port: '.$port.')',