mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Fix duplicate bans being displayed for some reason
This commit is contained in:
parent
0d50781637
commit
50189bceaf
@ -8,7 +8,7 @@ litebans_connect();
|
||||
function get_query($table) {
|
||||
global $table_history, $active_query, $limit_per_page;
|
||||
return 'SELECT * FROM ' . $table . ' INNER JOIN ' . $table_history . ' on ' . $table . '.uuid=' . $table_history . '.uuid ' . $active_query .
|
||||
' ORDER BY time DESC LIMIT ' . $limit_per_page;
|
||||
' GROUP BY ' . $table . '.id ORDER BY time DESC LIMIT ' . $limit_per_page;
|
||||
}
|
||||
|
||||
function run_query($table) {
|
||||
@ -30,4 +30,4 @@ function get_banner_name($banner) {
|
||||
return $banner;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user