The query condition for active users are unified
This commit is contained in:
@@ -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]);
|
||||
|
||||
@@ -125,7 +125,7 @@ class Active extends BaseUsers
|
||||
|
||||
$th_users = array_map(null, [$this->t('Name'), $this->t('Email'), $this->t('Register date'), $this->t('Last login'), $this->t('Last public item'), $this->t('Type')], $valid_orders);
|
||||
|
||||
$count = $this->database->count('user', ["NOT `blocked` AND `verified` AND NOT `account_removed` AND `uid` != ?", 0]);
|
||||
$count = $this->database->count('user', ["`verified` AND NOT `blocked` AND NOT `account_removed` AND NOT `account_expired` AND `uid` != ?", 0]);
|
||||
|
||||
$t = Renderer::getMarkupTemplate('moderation/users/active.tpl');
|
||||
return self::getTabsHTML('active') . Renderer::replaceMacros($t, [
|
||||
|
||||
Reference in New Issue
Block a user