-
Bug
-
Resolution: Fixed
-
Minor
-
1.7
-
None
-
MOODLE_17_STABLE
-
MOODLE_18_STABLE, MOODLE_19_STABLE
Writing invalid xml causes xmldb to die with the following error:
PHP Fatal error: Cannot use string offset as an array in /var/www/mahara/htdocs/lib/xmldb/classes/XMLDBTable.class.php on line 469
This was caused by the following fragment:
<TABLE NAME="foo" />
<FIELDS>
....
</FIELDS>
</TABLE>
(note closing slash on opening TABLE tag)
can xmldb validate the xml first before continuing ?