summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2023-10-06 15:52:35 +0200
committerSimon Rettberg2023-10-06 15:52:35 +0200
commit29c19060614ec2056a7dfa90415057f19191a404 (patch)
tree5ea21ee74fb7043add4ea7e7e6004114515e7583 /modules-available/statistics/pages
parent[inc/Database] Fix return type (diff)
downloadslx-admin-29c19060614ec2056a7dfa90415057f19191a404.tar.gz
slx-admin-29c19060614ec2056a7dfa90415057f19191a404.tar.xz
slx-admin-29c19060614ec2056a7dfa90415057f19191a404.zip
Fix a few deprecation warnings on PHP 8.2
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/summary.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/summary.inc.php b/modules-available/statistics/pages/summary.inc.php
index ce16b536..8b476f36 100644
--- a/modules-available/statistics/pages/summary.inc.php
+++ b/modules-available/statistics/pages/summary.inc.php
@@ -26,7 +26,9 @@ class SubPage
// Prepare chart colors
self::$STATS_COLORS = [];
for ($i = 0; $i < 10; ++$i) {
- self::$STATS_COLORS[] = '#55' . sprintf('%02s%02s', dechex((($i + 1) * ($i + 1)) / .3922), dechex(abs((5 - $i) * 51)));
+ self::$STATS_COLORS[] = '#55' . sprintf('%02s%02s', dechex(
+ (int)((($i + 1) * ($i + 1)) / .3922)),
+ dechex((int)(abs((5 - $i) * 51))));
}
$filterSet->filterNonClients();