From d0874a65acfbb2ed36eb7eae666969fde69ca004 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 2 Dec 2009 10:43:06 -0800 Subject: 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. --- modules/notification/helpers/notification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/notification') 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; -- cgit v1.2.3