From 8495a1ac89029f7b1b2f556f25d697d70bafebc7 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 13 Feb 2011 13:10:55 +0000 Subject: [PATCH] typo fix --- ext/comment/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index 62563530..c9e47f01 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -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();