fix adding of bans
This commit is contained in:
parent
b1cb655adc
commit
f92e402c14
1 changed files with 2 additions and 2 deletions
|
@ -223,8 +223,8 @@ class IPBan implements Extension {
|
|||
|
||||
private function add_ip_ban($ip, $reason, $end, $user) {
|
||||
global $database;
|
||||
$sql = "INSERT INTO bans (ip, reason, end_timestamp, banner_id) VALUES (?, ?, ?, ?)";
|
||||
$database->Execute($sql, array($ip, $reason, strtotime($end), $user->id));
|
||||
$sql = "INSERT INTO bans (ip, reason, end_timestamp, banner_id) VALUES (:ip, :reason, :end, :admin_id)";
|
||||
$database->Execute($sql, array("ip"=>$ip, "reason"=>$reason, "end"=>strtotime($end), "admin_id"=>$user->id));
|
||||
$database->cache->delete("ip_bans");
|
||||
}
|
||||
// }}}
|
||||
|
|
Reference in a new issue