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,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);