mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-22 17:29:57 -04:00
Fix a bug in the way that we calculate expiration dates for old
comments by using Database_Expression. Fixes ticket #1386.
This commit is contained in:
@@ -25,7 +25,7 @@ class Admin_Manage_Comments_Controller extends Admin_Controller {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user