Fix php version notification removal (#9796)

This commit is contained in:
Tony Murray
2019-02-08 08:17:02 -06:00
committed by GitHub
parent 2310356f60
commit bc93d8c037

View File

@@ -163,10 +163,11 @@ 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';
}
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.",
@@ -175,6 +176,7 @@ if ($options['f'] === 'handle_notifiable') {
);
exit(1);
}
}
remove_notification($error_title);
exit(0);