DataObjects/Core_watch.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 4 Dec 2012 15:10:20 +0000 (23:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 4 Dec 2012 15:10:20 +0000 (23:10 +0800)
DataObjects/Core_watch.php

index 62e1b2e..f17c60b 100644 (file)
@@ -85,6 +85,11 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
         if ($whereAdd !== false) { 
             $w->whereAdd($whereAdd  );
         }
         if ($whereAdd !== false) { 
             $w->whereAdd($whereAdd  );
         }
+        $w->active =1;
+        
+         $w->whereAdd('onid = 0 OR onid='. ((int) $onid));
+       
+        
         $w->ontable = $ontable;
         //$w->selectAdd();
         //$w->selectAdd('distinct(person_id) as person_id');
         $w->ontable = $ontable;
         //$w->selectAdd();
         //$w->selectAdd('distinct(person_id) as person_id');