diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 90d836d87f..2672f2eec1 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -1329,9 +1329,11 @@ foreach($sess as $key => $val) if (!$readonly && $type != 'buttononly') // input button, are never submitted back! { $GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = $cell['type']; - if ($name == 'cancel' || stripos($name,'[cancel]') !== false) - { - $GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = 'cancel'; + if (strlen($name>0) { + if ($name == 'cancel' || stripos($name,'[cancel]') !== false) + { + $GLOBALS['egw_info']['etemplate']['to_process'][$form_name] = 'cancel'; + } } } break;