Skip to content

Commit

Permalink
Fixing #4548 - PHP 8.1 Warnings
Browse files Browse the repository at this point in the history
CMDPHP PHP ERROR Backtrace and other errors
  • Loading branch information
TheWitness committed Feb 8, 2022
1 parent 6363681 commit 7cb3ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Cacti CHANGELOG
-issue#4545: Reports Tab always shows 'Administration' despite a users permissions
-issue#4546: Instead of receiving a permission denied message unauthenticated issues were redirected
-issue#4547: Testing with LDAP authentication generating backtraces
-issue#4548: CMDPHP PHP ERROR Backtrace and other errors
-feature: Expose hidden Language Translation setting l10n_language_handler
-feature: Allow a Device to be a part of a Report outside of a Tree
-feature: Allow Basic Authentication to display customer login failed message
Expand Down
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5195,7 +5195,7 @@ function calculate_percentiles($data, $percentile = 95, $whisker = false) {
foreach($tiles as $index => $p) {
/* calculate offsets into the array */
$allindex = ($elements - 1) * $p;
$intvalindex = intval($allindex);
$intvalindex = floor($allindex);
$floatval = $allindex - $intvalindex;

if (!is_float($floatval)) {
Expand Down

0 comments on commit 7cb3ed5

Please sign in to comment.