NotifyAction.php
authorAlan Knowles <alan@roojs.com>
Thu, 29 Sep 2011 14:24:21 +0000 (22:24 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 29 Sep 2011 14:24:21 +0000 (22:24 +0800)
NotifyAction.php

index 20116a4..8b0b915 100644 (file)
@@ -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();