mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Fix show_inactive_bans=false
This commit is contained in:
parent
e1b83123c7
commit
8f607940fe
@ -30,7 +30,10 @@ class Database {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$cfg->show_inactive_bans) {
|
if (!$cfg->show_inactive_bans) {
|
||||||
|
$time = gettimeofday();
|
||||||
|
$millis = $time["sec"] * 1000;
|
||||||
$this->active_query = self::append_query($this->active_query, "active=" . Database::$TRUE);
|
$this->active_query = self::append_query($this->active_query, "active=" . Database::$TRUE);
|
||||||
|
$this->active_query = self::append_query($this->active_query, "(until<1 OR until>$millis)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$cfg->show_silent_bans) {
|
if (!$cfg->show_silent_bans) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user