mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-05 04:29:09 -04:00
Use db::expr instead of "new Database_Expression". Resolves #1560.
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", "<", new Database_Expression("UNIX_TIMESTAMP() - 86400 * 7"))
|
||||
->where("updated", "<", db::expr("UNIX_TIMESTAMP() - 86400 * 7"))
|
||||
->execute();
|
||||
|
||||
// Redirect to the appropriate queue
|
||||
|
||||
Reference in New Issue
Block a user