mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 23:37: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
|
$table = $page->settings->table['history']; // Not user input
|
||||||
|
|
||||||
try {
|
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);
|
$stmt->bindParam(':val', $name, PDO::PARAM_STR);
|
||||||
if ($stmt->execute()) {
|
if ($stmt->execute()) {
|
||||||
if ($row = $stmt->fetch()) {
|
if ($row = $stmt->fetch()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user