From bd15853708ae73ee69220738a061e10d015d7fb9 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 27 Feb 2009 21:07:18 +0000 Subject: This implements table prefix for all the queries in core, user, exif, tag, search, comment and notification modules (Ticket #68) --- modules/comment/controllers/admin_comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/controllers') diff --git a/modules/comment/controllers/admin_comments.php b/modules/comment/controllers/admin_comments.php index cd408421..47e354af 100644 --- a/modules/comment/controllers/admin_comments.php +++ b/modules/comment/controllers/admin_comments.php @@ -57,7 +57,7 @@ class Admin_Comments_Controller extends Admin_Controller { public function index() { // Get rid of old deleted/spam comments Database::instance()->query( - "DELETE FROM `comments` " . + "DELETE FROM `[comments]` " . "WHERE state IN ('deleted', 'spam') " . "AND unix_timestamp(now()) - updated > 86400 * 7"); -- cgit v1.2.3