Skip to content

Commit

Permalink
Refixing #5338 - Boost compatibility
Browse files Browse the repository at this point in the history
Make this compatible with all PHP releases.
  • Loading branch information
TheWitness committed Jun 3, 2023
1 parent 2194ba1 commit c3041fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Cacti CHANGELOG
-issue#5319: Data Source Debug 'Run All' generates too many log messages
-issue#5323: Cosmetic error in the system utilities - rebuild poller cache - description
-issue#5329: Upon displaying a form with errors, the session error fields variable isn't cleared
-issue#5338:
-issue#5338: Compatibility changes for Boost under PHP 8.1
-feature: Upgrade billboard.js to version 3.7.4
-feature: Upgrade d3.js to version 7.8.2

Expand Down
8 changes: 4 additions & 4 deletions poller_boost.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@
/* find out if it's time to collect device information
* support both old and new formats.
*/
$boost_last_run_time = read_config_option('boost_last_run_time') ?? '';
if (!is_numeric($boost_last_run_time)) {
$boost_last_run_time = read_config_option('boost_last_run_time');
if (!empty($boost_last_run_time) && !is_numeric($boost_last_run_time)) {
$last_run_time = strtotime($boost_last_run_time);
} else {
$last_run_time = $boost_last_run_time;
}

$boost_next_run_time = read_config_option('boost_next_run_time') ?? '';
if (!is_numeric($boost_next_run_time)) {
$boost_next_run_time = read_config_option('boost_next_run_time');
if (!empty($boost_next_run_time) && !is_numeric($boost_next_run_time)) {
$next_run_time = strtotime($boost_next_run_time);
} else {
$next_run_time = $boost_next_run_time;
Expand Down

0 comments on commit c3041fe

Please sign in to comment.