DataObjects/Core_watch.php
[Pman.Core] / DataObjects / Core_watch.php
index 7f798be..e833ace 100644 (file)
@@ -85,6 +85,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
         if ($whereAdd !== false) { 
             $w->whereAdd($whereAdd  );
         }
+        $w->ontable = $ontable;
         //$w->selectAdd();
         //$w->selectAdd('distinct(person_id) as person_id');
         
@@ -154,8 +155,7 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
         
         
         $w->whereAdd('person_id != '. (int) $event->person_id);
-
-        
         $watches = $w->fetchAll();
         
         //print_R($watches);exit;