From 50189bceafab5c91ff87e8db0a16f07c3ba008cd Mon Sep 17 00:00:00 2001 From: Ruan Date: Tue, 24 Mar 2015 17:57:56 +0200 Subject: [PATCH] Fix duplicate bans being displayed for some reason --- includes/page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/page.php b/includes/page.php index 09ee395..9264b53 100644 --- a/includes/page.php +++ b/includes/page.php @@ -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; } -?> \ No newline at end of file +?>