DataObjects/Core_watch.php
[Pman.Core] / DataObjects / Core_watch.php
index 7f6752e..771b68c 100644 (file)
@@ -85,8 +85,8 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
         if ($whereAdd !== false) { 
             $w->whereAdd($whereAdd  );
         }
-        $w->selectAdd();
-        $w->selectAdd('distinct(person_id) as person_id');
+        //$w->selectAdd();
+        //$w->selectAdd('distinct(person_id) as person_id');
         
         foreach($w->fetchAll() as $w) { 
             if (!$w->person_id) { // no people??? bugs in watch table
@@ -99,7 +99,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
             $nn->ontable = $ontable;
             $nn->onid = $onid;
             $nn->evtype = $w->medium;
-            $nn->person_id = $p;
+            $nn->person_id = $w->person_id;
             
             $nf = clone($nn);
             $nf->whereAdd('sent < act_when');