From b5d98edb4bccb240b33acaf6f1594af3c23fc8dd Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Tue, 13 Jun 2023 01:57:22 +0800 Subject: [PATCH] fix dashboard number_format error --- app/Repositories/DashboardRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/DashboardRepository.php b/app/Repositories/DashboardRepository.php index 7616d7bb..550ccb57 100644 --- a/app/Repositories/DashboardRepository.php +++ b/app/Repositories/DashboardRepository.php @@ -124,7 +124,7 @@ class DashboardRepository extends BaseRepository $result[$name] = [ 'name' => $name, 'text' => nexus_trans("dashboard.user.$name"), - 'value' => sprintf('%s / %s', number_format(User::query()->count()), number_format(Setting::get('main.maxusers'))), + 'value' => sprintf('%s / %s', number_format(User::query()->count()), number_format(intval(Setting::get('main.maxusers')))), ]; $name = 'unconfirmed'; $result[$name] = [