typo fix
This commit is contained in:
parent
68585bb8c8
commit
8495a1ac89
@ -339,7 +339,7 @@ class CommentList extends SimpleExtension {
|
||||
$window = int_escape($config->get_int('comment_window'));
|
||||
$max = int_escape($config->get_int('comment_limit'));
|
||||
|
||||
$result = $database->Execute("SELECT * FROM comments WHERE owner_ip = :remote_id ".
|
||||
$result = $database->Execute("SELECT * FROM comments WHERE owner_ip = :remote_ip ".
|
||||
"AND posted > date_sub(now(), interval :window minute)",
|
||||
Array("remote_ip"=>$_SERVER['REMOTE_ADDR'], "window"=>$window));
|
||||
$recent_comments = $result->RecordCount();
|
||||
|
Loading…
x
Reference in New Issue
Block a user