From 3b7a7bab78546f5537560c35d3496722a7ef9eeb Mon Sep 17 00:00:00 2001 From: ruan Date: Fri, 16 Sep 2016 21:06:43 +0200 Subject: [PATCH] Fix kicks not being shown with show_inactive_bans=false --- inc/page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/page.php b/inc/page.php index e086ab7..efe524f 100644 --- a/inc/page.php +++ b/inc/page.php @@ -124,7 +124,7 @@ class Page { $sel = $this->get_selection($table); - $where = $this->where_append($this->settings->active_query); + $where = $this->where_append($this->name === "kicks" ? "" : $this->settings->active_query); $where .= "(uuid <> '#offline#' AND uuid IS NOT NULL)"; $query = "SELECT $sel FROM $table $where GROUP BY $table.id ORDER BY time DESC LIMIT :limit OFFSET :offset"; @@ -392,7 +392,7 @@ class Page { $page = $this->name . ".php"; if ($total === -1) { - $where = $this->where_append($this->settings->active_query); + $where = $this->where_append($this->name === "kicks" ? "" : $this->settings->active_query); $where .= "(uuid <> '#offline#' AND uuid IS NOT NULL)"; $result = $this->conn->query("SELECT COUNT(*) AS count FROM $table $where")->fetch(PDO::FETCH_ASSOC);