summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-08-28 12:42:37 -0700
committerBharat Mediratta <bharat@menalto.com>2009-08-28 12:42:37 -0700
commit6dcfdb6432d556f43736d60de8f310f247868bfa (patch)
tree799b6f7301a172cf932bc250e74afffaaca182e8 /modules
parentdcead39dfbd1885720e888446d0572e11b7ad47c (diff)
Fix a bug in notification where were using get() instead of current()
to get the first item in an ORM result set.
Diffstat (limited to 'modules')
-rw-r--r--modules/notification/helpers/notification.php2
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)