X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_watch.php;h=5e33ef3760c0e13d76b9be0f815d9871f1ba817a;hp=b77369269fc73a536c64c9b6330ce884742ce678;hb=f060f211128f0170191bd2e75c47074167377a25;hpb=8ed5e3b95fa253debecd82a5274c1345578f56ab diff --git a/DataObjects/Core_watch.php b/DataObjects/Core_watch.php index b7736926..5e33ef37 100644 --- a/DataObjects/Core_watch.php +++ b/DataObjects/Core_watch.php @@ -235,8 +235,10 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject $w->event = $event->action; $w->active = 1; - - $w->whereAdd('person_id != '. (int) $event->person_id); + // not sure why this is here... + if ($event->person_id) { + $w->whereAdd('person_id != '. (int) $event->person_id); + } $watches = $w->fetchAll();