From: Alan Knowles Date: Thu, 29 Sep 2011 14:24:21 +0000 (+0800) Subject: NotifyAction.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=53c3aa7723a4b8d665c419a85344c842759eb5c5 NotifyAction.php --- diff --git a/NotifyAction.php b/NotifyAction.php index 20116a45..8b0b9156 100644 --- a/NotifyAction.php +++ b/NotifyAction.php @@ -55,7 +55,7 @@ class Pman_Core_NotifyAction extends Pman } $ids = explode(',', $_POST['on_id']); $n->whereAdd('sent < act_when'); // not issued yet.. - $n->whereAdd("join_watch_id_id.medium = '". $n->escape($k) ."'"); + $n->whereAdd("join_watch_id_id.medium = '". $n->escape($n->action) ."'"); $n->whereAddIn('core_notify.id', $ids, 'int' ); $n->autoJoin(); $ar = $n->fetchAll();