Fix Export Missing coluns due to the select star sweep

This commit is contained in:
johnnyq
2026-08-09 14:33:06 -04:00
parent de46184a5b
commit f7548af234
5 changed files with 12 additions and 5 deletions

View File

@@ -355,7 +355,7 @@ if (isExportRequest('export_users')) {
$sql = mysqli_query(
$mysqli,
"SELECT user_status FROM users
"SELECT role_name, user_created_at, user_email, user_name, user_status FROM users
LEFT JOIN user_roles ON user_role_id = role_id
WHERE (user_name LIKE '%$q%' OR user_email LIKE '%$q%')
AND user_type = 1