mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Check names based on descending order of login date instead of ascending
This commit is contained in:
parent
6c40fdfeb9
commit
f8318961ed
@ -18,7 +18,7 @@ class Check {
|
||||
$table = $page->settings->table['history']; // Not user input
|
||||
|
||||
try {
|
||||
$stmt = $page->conn->prepare("SELECT name,uuid FROM $table WHERE $column=:val ORDER BY date LIMIT 1");
|
||||
$stmt = $page->conn->prepare("SELECT name,uuid FROM $table WHERE $column=:val ORDER BY date DESC LIMIT 1");
|
||||
$stmt->bindParam(':val', $name, PDO::PARAM_STR);
|
||||
if ($stmt->execute()) {
|
||||
if ($row = $stmt->fetch()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user