sql compliance

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@934 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-07-25 12:06:13 +00:00
parent 5d42ee21de
commit 9993370fc6

View File

@ -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();}
}