diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index fc1781958..4377f112b 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -2779,6 +2779,7 @@ class G self::_del_p( $mnary ); + $obj_resp = new stdclass(); $obj_resp->code = xml_get_error_code( $parser ); $obj_resp->message = xml_error_string( $obj_resp->code ); $obj_resp->result = $mnary; diff --git a/gulliver/system/class.publisher.php b/gulliver/system/class.publisher.php index 586ac487b..c8397945f 100755 --- a/gulliver/system/class.publisher.php +++ b/gulliver/system/class.publisher.php @@ -431,6 +431,9 @@ class Publisher if (isset( $Part['ajaxServer'] ) && ($Part['ajaxServer'] !== '')) { $oTable->ajaxServer = $Part['ajaxServer']; } + if (!isset($G_FORM->xmlform)) { + $G_FORM->xmlform = new stdclass(); + } $G_FORM->xmlform->fileXml = $G_FORM->fileName; $G_FORM->xmlform->home = $G_FORM->home; $G_FORM->xmlform->tree->attribute = $G_FORM->tree->attributes; diff --git a/workflow/engine/methods/dynaforms/fields_Ajax.php b/workflow/engine/methods/dynaforms/fields_Ajax.php index 0af5cbe32..3f268f8d1 100755 --- a/workflow/engine/methods/dynaforms/fields_Ajax.php +++ b/workflow/engine/methods/dynaforms/fields_Ajax.php @@ -86,6 +86,7 @@ $newContent = $G_FORM->getFields( $template ); $sendContent = array (); $r = 0; foreach ($dependentFields as $d) { + $sendContent[$r] = new stdclass(); $sendContent[$r]->name = $d; $sendContent[$r]->content = null; foreach ($G_FORM->fields[$d] as $attribute => $value) {