Browse Source

Merge pull request #10873 from martincodes-de/count-user-correctly

add condition to count accounts that arent removed
pull/10874/head
Hypolite Petovan 1 month ago
committed by GitHub
parent
commit
a60fe907fb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Module/Admin/BaseUsers.php

2
src/Module/Admin/BaseUsers.php

@ -42,7 +42,7 @@ abstract class BaseUsers extends BaseAdmin
{
$active = DBA::count('user', ['blocked' => false, 'verified' => true, 'account_removed' => false]);
$pending = Register::getPendingCount();
$blocked = DBA::count('user', ['blocked' => true, 'verified' => true]);
$blocked = DBA::count('user', ['blocked' => true, 'verified' => true, 'account_removed' => false]);
$deleted = DBA::count('user', ['account_removed' => true]);
$tabs = [

Loading…
Cancel
Save