standard sql

git-svn-id: file:///home/shish/svn/shimmie2/trunk@962 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-07-29 21:09:43 +00:00
parent c741ea216f
commit 3c91224e8b

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