summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd59515)
raw | patch | inline | side by side (parent: bd59515)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Dec 2008 14:21:53 +0000 (14:21 +0000) | ||
committer | hickert <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
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 | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc
index f6ae2b7f022080d3d11f645da005018a452975dd..575626165251341721be9b18f95388cc4bf8fef2 100644 (file)
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);
}