mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix php version notification removal (#9796)
This commit is contained in:
18
daily.php
18
daily.php
@@ -163,17 +163,19 @@ if ($options['f'] === 'handle_notifiable') {
|
||||
if ($options['r'] === 'php53') {
|
||||
$phpver = '5.6.4';
|
||||
$eol_date = 'January 10th, 2018';
|
||||
} else {
|
||||
} elseif ($options['r'] === 'php56') {
|
||||
$phpver = '7.1.3';
|
||||
$eol_date = 'February 1st, 2019';
|
||||
}
|
||||
new_notification(
|
||||
$error_title,
|
||||
"PHP version $phpver is the minimum supported version as of $eol_date. We recommend you update to PHP a supported version of PHP (7.2 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.",
|
||||
2,
|
||||
'daily.sh'
|
||||
);
|
||||
exit(1);
|
||||
if (isset($phpver)) {
|
||||
new_notification(
|
||||
$error_title,
|
||||
"PHP version $phpver is the minimum supported version as of $eol_date. We recommend you update to PHP a supported version of PHP (7.2 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.",
|
||||
2,
|
||||
'daily.sh'
|
||||
);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
remove_notification($error_title);
|
||||
|
Reference in New Issue
Block a user