From ecf0534f68decc60b493d8aa08ac65ebae0d8d77 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Dec 2008 14:21:53 +0000 Subject: [PATCH] Updated events -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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc index f6ae2b7f0..575626165 100644 --- a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc +++ b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc @@ -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); } -- 2.30.2