diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-12-02 10:43:06 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-12-02 10:43:06 -0800 |
commit | d0874a65acfbb2ed36eb7eae666969fde69ca004 (patch) | |
tree | a6214d91e29dbafa7f001b7a1766ab949d707b62 /modules | |
parent | 87bc32345f6d7cb64c4009ed68a79776ace7ff1b (diff) |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/notification/helpers/notification.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/notification/helpers/notification.php b/modules/notification/helpers/notification.php index 31a56c1f..e9fc3f33 100644 --- a/modules/notification/helpers/notification.php +++ b/modules/notification/helpers/notification.php @@ -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; |