DataObjects/Core_watch.php
authorAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 07:18:41 +0000 (15:18 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 07:18:41 +0000 (15:18 +0800)
DataObjects/Core_watch.php

index 3bd4af2..84caa19 100644 (file)
@@ -114,7 +114,9 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
         //    if more intelligence is needed...
         //    then it 'rules' will have to be added by the watched object....
         //    anyway leave that for another day..
-        
+        if (empty($event->action)) {
+            return;
+        }
         $w = DB_DataObject::factory('core_watch');
         $w->ontable = $event->on_table;
         $w->whereAdd('onid = 0 OR onid='. ((int) $event->on_id));