case 'pendingActivation':
$conditionBuilder = new PreparedStatementConditionBuilder();
+ $conditionBuilder->add('banned = ?', [0]);
$conditionBuilder->add('activationCode <> ?', [0]);
if (REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER) {
$conditionBuilder->add('emailConfirmed IS NULL');
$usersAwaitingApproval = 0;
if (REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_ADMIN) {
$conditionBuilder = new PreparedStatementConditionBuilder();
+ $conditionBuilder->add('banned = ?', [0]);
$conditionBuilder->add('activationCode <> ?', [0]);
if (REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER) {
$conditionBuilder->add('emailConfirmed IS NULL');