diff options
author | Simon Rettberg | 2024-01-17 11:32:37 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-17 11:32:37 +0100 |
commit | 3157b9ee87cffa4f934e8a57c5d9d07af002f0a3 (patch) | |
tree | 44f12b44a88440350cfbd672c96490a8551fbbc5 | |
parent | [vmstore] Restore warning on unconfigured vmstore (diff) | |
download | slx-admin-3157b9ee87cffa4f934e8a57c5d9d07af002f0a3.tar.gz slx-admin-3157b9ee87cffa4f934e8a57c5d9d07af002f0a3.tar.xz slx-admin-3157b9ee87cffa4f934e8a57c5d9d07af002f0a3.zip |
Fix type errors
-rw-r--r-- | inc/user.inc.php | 2 | ||||
-rw-r--r-- | modules-available/statistics/pages/summary.inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php index 01b4d210..9ef27cd0 100644 --- a/inc/user.inc.php +++ b/inc/user.inc.php @@ -157,7 +157,7 @@ class User return false; if (!Crypto::verify($pass, $ret['passwd'])) return false; - Session::create($ret['passwd'], $ret['userid'], $fixedIp); + Session::create($ret['passwd'], (int)$ret['userid'], $fixedIp); self::generateToken($ret['passwd']); return true; } diff --git a/modules-available/statistics/pages/summary.inc.php b/modules-available/statistics/pages/summary.inc.php index e9c25456..905f5d90 100644 --- a/modules-available/statistics/pages/summary.inc.php +++ b/modules-available/statistics/pages/summary.inc.php @@ -119,7 +119,7 @@ class SubPage ++$sum; } } - if (!empty($points1) && max(...$points1) > 0) { + if (!empty($points1) && max($points1) > 0) { $labels = array_reverse($labels); $points1 = array_reverse($points1); $points2 = array_reverse($points2); |