diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-08-28 12:42:37 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-08-28 12:42:37 -0700 |
commit | 6dcfdb6432d556f43736d60de8f310f247868bfa (patch) | |
tree | 799b6f7301a172cf932bc250e74afffaaca182e8 | |
parent | dcead39dfbd1885720e888446d0572e11b7ad47c (diff) |
Fix a bug in notification where were using get() instead of current()
to get the first item in an ORM result set.
-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 92c40d4f..d95b3060 100644 --- a/modules/notification/helpers/notification.php +++ b/modules/notification/helpers/notification.php @@ -153,7 +153,7 @@ class notification { ->where("email", $email) ->find_all(); if ($result->count() == 1) { - $pending = $result->get(); + $pending = $result->current(); Sendmail::factory() ->to($email) ->subject($pending->subject) |