mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-02 17:59:16 -04:00
Use db::expr instead of "new Database_Expression". Resolves #1560.
This commit is contained in:
@@ -160,7 +160,7 @@ class notification {
|
||||
|
||||
static function send_pending_notifications() {
|
||||
foreach (db::build()
|
||||
->select(new Database_Expression("DISTINCT `email`"))
|
||||
->select(db::expr("DISTINCT `email`"))
|
||||
->from("pending_notifications")
|
||||
->execute() as $row) {
|
||||
$email = $row->email;
|
||||
|
||||
Reference in New Issue
Block a user