X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=2776ce4a8b8b1eb473251ff9e07cb406e5b47d63;hp=790d475dc571403a52fdbdc0d571b0525babccb2;hb=a4a42dae2ef33c8597b6b192654486d0b3c27d9a;hpb=c80c353568feb0947ff4e2373037a7caa7e20bd8 diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 790d475d..2776ce4a 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -152,7 +152,7 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject function applyFilters($q, $au, $roo) { - if (isset($q['ontable']) && !in_array($q['ontable'], array('Person', 'Events' . 'core_watch'))) { + if (isset($q['ontable']) && !in_array($q['ontable'], array('Person', 'Events', 'core_watch'))) { // this will only work on tables not joined to ours. //DB_DAtaObject::DebugLevel(1); @@ -190,9 +190,11 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject case 'PENDING'; $this->whereAdd('event_id = 0 OR (event_id > 0 AND act_when > NOW() )'); break; + case 'OPENED'; $this->whereAdd('is_open > 0'); break; + case 'ALL': default: break;