mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-24 13:29:10 -04:00
Use:
->select(new Database_Expression("DISTINCT `email`"))
instead of:
->select("DISTINCT email")
This is not the perfect API. http://dev.kohanaphp.com/issues/2396 is
the upstream tracking ticket for a better API.
This commit is contained in:
@@ -171,7 +171,7 @@ class notification {
|
||||
|
||||
static function send_pending_notifications() {
|
||||
foreach (db::build()
|
||||
->select("DISTINCT email")
|
||||
->select(new Database_Expression("DISTINCT `email`"))
|
||||
->from("pending_notifications")
|
||||
->execute() as $row) {
|
||||
$email = $row->email;
|
||||
|
||||
Reference in New Issue
Block a user