projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
56563aa
)
NotifySend.php
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Jun 2015 04:27:01 +0000
(12:27 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Jun 2015 04:27:01 +0000
(12:27 +0800)
NotifySend.php
patch
|
blob
|
history
diff --git
a/NotifySend.php
b/NotifySend.php
index
c7a3f8f
..
247ac3d
100644
(file)
--- a/
NotifySend.php
+++ b/
NotifySend.php
@@
-156,11
+156,14
@@
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( array(
+
+ $lar = array(
'ontable' => $w->ontable,
'onid' => $w->onid,
- 'person_id' => $w->person_id,
- ));
+ );
+ $lar[strtolower($w->ontable).'_id'] = $w->{strtolower($w->ontable).'_id'};
+
+ $l->setFrom( $lar );
$l->whereAdd('id != '. $w->id);
$l->orderBy('sent DESC');
$l->limit(1);