diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 21:07:18 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-27 21:07:18 +0000 |
commit | bd15853708ae73ee69220738a061e10d015d7fb9 (patch) | |
tree | facfbd5b08e3cbb8e7fa2b4adf433b54d4c0c5bc /modules/comment/controllers/admin_comments.php | |
parent | 0b9fe18a6bf4036a05db7f9479d7b55d3fe5c782 (diff) |
This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
Diffstat (limited to 'modules/comment/controllers/admin_comments.php')
-rw-r--r-- | modules/comment/controllers/admin_comments.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |