From: Alan Knowles Date: Tue, 4 Dec 2012 15:10:20 +0000 (+0800) Subject: DataObjects/Core_watch.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4f0370e9d80f4c3680fd2c42729e57f97024489d DataObjects/Core_watch.php --- diff --git a/DataObjects/Core_watch.php b/DataObjects/Core_watch.php index 62e1b2ef..f17c60b3 100644 --- a/DataObjects/Core_watch.php +++ b/DataObjects/Core_watch.php @@ -85,6 +85,11 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject 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');