summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4fac2f6)
raw | patch | inline | side by side (parent: 4fac2f6)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jul 2009 11:29:01 +0000 (11:29 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 22 Jul 2009 11:29:01 +0000 (11:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13947 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc | patch | blob | history | |
trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc | patch | blob | history |
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 b163d1b0552aff03fe479d7fa38caf4b1677b736..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);
}
diff --git a/trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc b/trunk/gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc
index e2599414b2f862d6741603323a87eb4e6fd3b159..13bf90dd827c484585dadc17538ad52f442278a6 100644 (file)
var $subject = "";
var $from = "";
- var $attributes = array("from","user","group","message","subject","timestamp");
+ var $attributes = array("from","user","group","message","subject");
public function __construct($config,$data = array())
{