Update blockuser handling

This commit is contained in:
“VeLiTi”
2024-06-27 16:35:05 +02:00
parent 564b9e0aa9
commit 80ba36475f
6 changed files with 58 additions and 22 deletions

View File

@@ -176,7 +176,7 @@ switch ($action) {
break;
case 'report_usage_users':
$sql = 'SELECT YEAR(created) AS year, QUARTER(created) AS quarter, MONTH(created) as month, count(id) AS count FROM users WHERE NOT view = "3" GROUP BY YEAR(created), QUARTER(created), MONTH(created)';
$sql = 'SELECT count(id) AS count FROM users WHERE NOT view = "3"';
break;
}
@@ -207,6 +207,10 @@ switch ($action) {
$messages = $stmt->fetch();
break;
case 'report_usage_users':
$messages = $stmt->fetch();
break;
case 'firmwareCommunication':
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
if ($result) {