Code

Updated events
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Dec 2008 14:21:53 +0000 (14:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Dec 2008 14:21:53 +0000 (14:21 +0000)
-Do not send timestamp for triggered events.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13260 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc

index f6ae2b7f022080d3d11f645da005018a452975dd..575626165251341721be9b18f95388cc4bf8fef2 100644 (file)
@@ -431,7 +431,11 @@ class DaemonEvent
     foreach($this->attributes as $attr){
       $ret[$attr] = $this->$attr;
     }
-    $ret['timestamp'] = $this->_timestamp_to_event($this->timestamp);
+    if($this->mode == SCHEDULED_EVENT){
+      $ret['timestamp'] = $this->_timestamp_to_event($this->timestamp);
+    }elseif(isset($ret['timestamp'])){
+      unset($ret['timestamp']);
+    }
     return($ret);
   }