fix for somehow empty etemplate request content, giving an error when (or after) sending mail

This commit is contained in:
Ralf Becker 2014-08-11 15:13:38 +00:00
parent 7dbba4dec0
commit 8d8b7b6d4a

View File

@ -277,6 +277,11 @@ class etemplate_widget_nextmatch extends etemplate_widget
array $knownUids=null, $lastModified=null) array $knownUids=null, $lastModified=null)
{ {
self::$request = etemplate_request::read($exec_id); self::$request = etemplate_request::read($exec_id);
// fix for somehow empty etemplate request content
if (!is_array(self::$request->content))
{
self::$request->content = array($form_name => array());
}
self::$response = egw_json_response::get(); self::$response = egw_json_response::get();
$value = self::get_array(self::$request->content, $form_name, true); $value = self::get_array(self::$request->content, $form_name, true);