DataObjects/Core_watch.php
authorAlan Knowles <alan@roojs.com>
Wed, 6 May 2015 04:49:04 +0000 (12:49 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 6 May 2015 04:49:04 +0000 (12:49 +0800)
DataObjects/Core_watch.php

index b773692..5e33ef3 100644 (file)
@@ -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();