standard sql
git-svn-id: file:///home/shish/svn/shimmie2/trunk@962 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
c741ea216f
commit
3c91224e8b
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ class IPBan extends Extension {
|
|||
|
||||
private function get_active_bans() {
|
||||
global $database;
|
||||
$bans = $database->get_all("SELECT * FROM bans WHERE (end_timestamp > ? OR isnull(end_timestamp))", array(time()));
|
||||
$bans = $database->get_all("SELECT * FROM bans WHERE (end_timestamp > ?) OR (end_timestamp IS NULL)", array(time()));
|
||||
if($bans) {return $bans;}
|
||||
else {return array();}
|
||||
}
|
||||
|
|
Reference in a new issue