diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc
index ae9078130eeba7f0843c11223f09f5767445bf94..5dc1d254d956f6c082a76d3cc77fe95bc5699a87 100644 (file)
}
if(isset($data['PERIODIC']) && !preg_match("/none/i",$data['PERIODIC'])){
- $tmp = split("_",$data['PERIODIC']);
+ $tmp = explode("_",$data['PERIODIC']);
if(count($tmp) == 2){
$this->activate_periodical_job = TRUE;
$this->periodValue = $tmp[0];
/*! \brief Returns HTML content, displaying a dialog which allows to add new targets.
- @return String HTML content. (EventTargetAddList)
+ @return String HTML content. (EventAddSystemDialog)
*/
public function get_target_add_list()
{
$this->target_add_list_used = TRUE;
if($this->target_divlist == NULL){
- $this->target_divlist = new EventTargetAddList($this->config,$this);
+ $this->target_divlist = new EventAddSystemDialog($this->config,$this);
}
- $this->target_divlist->execute();
$smarty = get_smarty();
- $smarty->assign("divlist",$this->target_divlist->Draw());
+ $smarty->assign("divlist",$this->target_divlist->execute());
return($smarty->fetch(get_template_path('target_list.tpl', TRUE, dirname(__FILE__))));
}
unset($ret['timestamp']);
}
- $ret['periodic'] = "none";
- if($this-> activate_periodical_job){
- $ret['periodic'][$this->periodType] = $this->periodValue;
+ if(isset($ret['periodic'])){
+ unset($ret['periodic']);
}
+ if($this->activate_periodical_job){
+ $ret['periodic']= $this->periodValue."_".$this->periodType;
+ }
+
return($ret);
}
public function set_value($name,$value)
{
$name = strtolower($name);
- if(isset($this->$name) && in_array($name,$this->attributes)){
+ if(isset($this->$name) && in_array_strict($name,$this->attributes)){
$this->$name = $value;
}
}