Skip to content

Commit

Permalink
fix missing where clause (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku authored Dec 5, 2024
1 parent 5b06286 commit e055c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Print.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public static function AdminEditUser()
}
// Get user data
$userData = $GLOBALS['db']->fetch('SELECT * FROM users WHERE id = ? LIMIT 1', $_GET['id']);
$lastScoreDetection = $GLOBALS['db']->fetch('SELECT created_at FROM score_detections ORDER BY created_at DESC LIMIT 1');
$lastScoreDetection = $GLOBALS['db']->fetch('SELECT created_at FROM score_detections WHERE user_id = ? ORDER BY created_at DESC LIMIT 1', $_GET['id']);
$ips = $GLOBALS['db']->fetchAll('SELECT ip, occurencies FROM ip_user WHERE userid = ? ORDER BY occurencies DESC LIMIT 50', $_GET['id']);
// Check if this user exists
if (!$userData) {
Expand Down

0 comments on commit e055c6b

Please sign in to comment.