From: psc Date: Wed, 24 Feb 2010 15:39:13 +0000 (+0000) Subject: Followup commit for #3768 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0132d3b67028154a94a1980ab929b8e9a00f5e21;p=gosa.git 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 --- 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);