mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:50:11 +00:00
The query condition for active users are unified
This commit is contained in:
parent
692a633dc8
commit
7e73283949
19 changed files with 33 additions and 37 deletions
|
@ -59,7 +59,7 @@ abstract class BaseUsers extends BaseModeration
|
|||
protected function getTabsHTML(string $selectedTab): string
|
||||
{
|
||||
$all = $this->database->count('user', ["`uid` != ?", 0]);
|
||||
$active = $this->database->count('user', ["NOT `blocked` AND `verified` AND NOT `account_removed` AND `uid` != ?", 0]);
|
||||
$active = $this->database->count('user', ["`verified` AND NOT `blocked` AND NOT `account_removed` AND NOT `account_expired` AND `uid` != ?", 0]);
|
||||
$pending = Register::getPendingCount();
|
||||
$blocked = $this->database->count('user', ['blocked' => true, 'verified' => true, 'account_removed' => false]);
|
||||
$deleted = $this->database->count('user', ['account_removed' => true]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue