This commit is contained in:
grandeljay 2022-10-11 13:58:14 +02:00
parent 01ac9e04b9
commit 0b2df54f38

View file

@ -117,9 +117,11 @@ if (isset($_POST['user-id'], $_POST['section'])) {
if ($set) { if ($set) {
$database $database
->query('UPDATE `users` ->query(
SET ' . implode(',', $set) . ' 'UPDATE `users`
WHERE `id` = ' . Sanitiser::getNumber($_POST['user-id'])); SET ' . implode(',', $set) . '
WHERE `id` = ' . Sanitiser::getNumber($_POST['user-id'])
);
} }
if ($loginRequired) { if ($loginRequired) {
@ -356,9 +358,11 @@ $page->navigation();
$user_is_active = '`last_login` >= CURDATE() - INTERVAL 60 DAY'; $user_is_active = '`last_login` >= CURDATE() - INTERVAL 60 DAY';
$count_users = $database $count_users = $database
->query('SELECT COUNT(`id`) ->query(
FROM `users` 'SELECT COUNT(`id`)
WHERE ' . $user_is_active . ';') FROM `users`
WHERE ' . $user_is_active . ';'
)
->fetch(); ->fetch();
$count_users = reset($count_users); $count_users = reset($count_users);
@ -373,10 +377,12 @@ $page->navigation();
); );
$count_users_rc = $database $count_users_rc = $database
->query('SELECT COUNT(`id`) ->query(
FROM `users` 'SELECT COUNT(`id`)
WHERE ' . $user_is_active . ' FROM `users`
AND `channel` = "release-candidate";') WHERE ' . $user_is_active . '
AND `channel` = "release-candidate";'
)
->fetch(); ->fetch();
$count_users_rc = reset($count_users_rc); $count_users_rc = reset($count_users_rc);
?> ?>