From bf593c04ffa2f2222da61d534bdfe664f8dbf20a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 29 Sep 2011 22:30:08 +0800 Subject: [PATCH] NotifyAction.php --- NotifyAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NotifyAction.php b/NotifyAction.php index f448ec8e..7ec24624 100644 --- a/NotifyAction.php +++ b/NotifyAction.php @@ -56,10 +56,10 @@ class Pman_Core_NotifyAction extends Pman } $n->$k = $_POST[$k]; } - $ids = explode(',', $_POST['on_id']); + $n->whereAdd('sent < act_when'); // not issued yet.. $n->whereAdd("join_watch_id_id.medium = '". $n->escape($n->action) ."'"); - $n->whereAddIn('core_notify.id', $ids, 'int' ); + $n->whereAddIn('core_notify.on_id', explode(',', $_POST['on_id']), 'int' ); $n->autoJoin(); $ar = $n->fetchAll(); -- 2.39.2