projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b13e6e4
)
NotifySend.php
author
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 15:10:03 +0000
(23:10 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 6 Apr 2011 15:10:03 +0000
(23:10 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
93e9a42
..
74507b4
100644
(file)
--- 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);