diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 06:37:28 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-28 06:37:28 +0000 |
commit | c04ff8e02f01691dc2e325efc523e43f3aebaf95 (patch) | |
tree | 8fbdfe90c1bb04b9b8b74500904c09f126430e19 /modules/comment/controllers | |
parent | ad56995bafffeca89c44b07cb4f25da7b36a1a99 (diff) |
Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
Diffstat (limited to 'modules/comment/controllers')
-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 47e354af..c1a30bd2 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"); |