Skip to content

Commit

Permalink
Fix a bug in the way that we calculate expiration dates for old
Browse files Browse the repository at this point in the history
comments by using Database_Expression.  Fixes ticket #1386.
  • Loading branch information
bharat committed Sep 18, 2010
1 parent 8135429 commit 8ee2515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/comment/controllers/admin_manage_comments.php
Expand Up @@ -25,7 +25,7 @@ public function index() {
db::build()
->delete("comments")
->where("state", "IN", array("deleted", "spam"))
->where("updated", "<", "UNIX_TIMESTAMP() - 86400 * 7")
->where("updated", "<", new Database_Expression("UNIX_TIMESTAMP() - 86400 * 7"))
->execute();

// Redirect to the appropriate queue
Expand Down

0 comments on commit 8ee2515

Please sign in to comment.