From 92e4314a6285a21c16eaca7b4e0d6c0ba98e2aac Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 6 Apr 2015 22:44:48 +0200 Subject: [PATCH] infinity/smart-build: lol nano --- inc/instance-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/instance-functions.php b/inc/instance-functions.php index d3fdf24b..a2102f94 100644 --- a/inc/instance-functions.php +++ b/inc/instance-functions.php @@ -7,7 +7,7 @@ function max_posts_per_hour($post) { if (!$config['hour_max_threads']) return false; if ($post['op']) { - $query = prepare(sprintf('SELECT COUNT(*) AS `count` FROM ``posts_%s`` WHERE `thread` IS NULL AND FROM_UNIXTIME(`time`) > DATE_SUB(NOW(), INTERVAL 1 HOUR);', $board[$ + $query = prepare(sprintf('SELECT COUNT(*) AS `count` FROM ``posts_%s`` WHERE `thread` IS NULL AND FROM_UNIXTIME(`time`) > DATE_SUB(NOW(), INTERVAL 1 HOUR);', $board['uri'])); $query->bindValue(':ip', $_SERVER['REMOTE_ADDR']); $query->execute() or error(db_error($query)); $r = $query->fetch(PDO::FETCH_ASSOC);