From 0132d3b67028154a94a1980ab929b8e9a00f5e21 Mon Sep 17 00:00:00 2001 From: psc Date: Wed, 24 Feb 2010 15:39:13 +0000 Subject: [PATCH] Followup commit for #3768 When saving daemon events check if timestamp is set. Otherwise set it to the current time. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15699 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/addons/goto/events/class_DaemonEvent.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc b/trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc index c06fa68cc..adcea3141 100644 --- a/trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc +++ b/trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc @@ -432,6 +432,10 @@ class DaemonEvent $ret[$attr] = $this->$attr; } + if(!isset($ret['timestamp'])){ + $ret['timestamp'] = time(); + } + # Check if timestamp is in gosa-si-time-format if(!tests::is_gosa_si_time($ret['timestamp'])){ $ret['timestamp'] = $this->_timestamp_to_event($this->timestamp); -- 2.30.2