From: Alan Knowles Date: Wed, 6 Apr 2011 15:10:03 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=555a78c7a6f8bec4092028ea805b32f7a3cb792b;p=Pman.Core NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 93e9a426..74507b44 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -47,9 +47,12 @@ class Pman_Core_NotifySend extends Pman // let's work out the last notification sent to this user.. $l = DB_DataObject::factory($this->table); - $l->setFrom($w->toArray()); - unset($l->sent); - unset($l->act_when); + $l->setFrom( array( + 'ontable' => $w->ontable, + 'onid' => $w->onid, + 'person_id' => $w->person_id, + )); + $l->whereAdd('id != '. $w->id); $l->orderBy('sent DESC'); $l->limit(1);