fix dashboard number_format error

This commit is contained in:
xiaomlove
2023-06-13 01:57:22 +08:00
parent 2b56de2a01
commit b5d98edb4b

View File

@@ -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] = [