mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 03:49:21 -04:00
Use db::expr instead of "new Database_Expression". Resolves #1560.
This commit is contained in:
@@ -27,7 +27,7 @@ class Admin_Maintenance_Controller extends Admin_Controller {
|
||||
->set("state", "stalled")
|
||||
->where("done", "=", 0)
|
||||
->where("state", "<>", "stalled")
|
||||
->where(new Database_Expression("UNIX_TIMESTAMP(NOW()) - `updated` > 15"))
|
||||
->where(db::expr("UNIX_TIMESTAMP(NOW()) - `updated` > 15"))
|
||||
->execute();
|
||||
$stalled_count = $query->count();
|
||||
if ($stalled_count) {
|
||||
|
||||
Reference in New Issue
Block a user