mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +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:
@@ -2,7 +2,7 @@
|
||||
|
||||
$check = shell_exec($config['nagios_plugins'] . "/check_simap -H ".$service['hostname']);
|
||||
|
||||
list($check, $time) = split("\|", $check);
|
||||
list($check, $time) = explode("|", $check);
|
||||
|
||||
if(strstr($check, "SIMAP OK")) {
|
||||
$status = '1';
|
||||
|
||||
Reference in New Issue
Block a user