summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-12 22:14:31 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-12 22:14:31 +1000
commitc39c54c2c2764596863e43a6d6ee4b07b52af327 (patch)
tree3c795bf7dfb594e52df37dc09c80157d59644d78 /inc
parenta564a95ab40eb1c9cc7de142db60aedb3e749176 (diff)
invalid $query
Diffstat (limited to 'inc')
-rw-r--r--inc/anti-bot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/anti-bot.php b/inc/anti-bot.php
index cd2ff795..131a643c 100644
--- a/inc/anti-bot.php
+++ b/inc/anti-bot.php
@@ -177,7 +177,7 @@ function _create_antibot($board, $thread) {
$antibot = new AntiBot(array($board, $thread));
- query('DELETE FROM `antispam` WHERE `expires` < UNIX_TIMESTAMP()') or error(db_error($query));
+ query('DELETE FROM `antispam` WHERE `expires` < UNIX_TIMESTAMP()') or error(db_error());
if($thread)
$query = prepare('UPDATE `antispam` SET `expires` = UNIX_TIMESTAMP() + :expires WHERE `board` = :board AND `thread` = :thread');