diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index ca3acf48cb..75a7011ee0 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -634,11 +634,12 @@ { return False; } + if(!isset($pos[$idx])) return false; $pos = &$pos[$idx]; } return $pos; } - + /** * unsets $arr[$idx] * diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index bd17741479..c1b758ec98 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -1664,7 +1664,7 @@ } $GLOBALS['egw_info']['etemplate']['validation_errors'] = array(); $this->canceled = $this->button_pressed = False; - + foreach($to_process as $form_name => $type) { if (is_array($type)) @@ -1677,7 +1677,8 @@ $attr = array(); } $value = $this->get_array($content_in,$form_name,True); - + if($value === false) continue; + if (isset($attr['blur']) && $attr['blur'] == $value) { $value = ''; // blur-values is equal to emtpy