mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 00:42:43 +00:00
Fix kicks not being shown with show_inactive_bans=false
This commit is contained in:
parent
c9fdf6e313
commit
3b7a7bab78
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user