- assigned_to: nobody --> nix1
- status: open --> open-remind
First off, there's a little bit of trouble in these two files:
/library/functions/lib_xml_validate.php
/tutors/forms/import/import.php
In lib_xml_validate.php, the Validate function returns true or false.
The local $allErrors variable contains any errors, but this information is never used.
The trouble begins when import.php captures the Validate() function's result into $isValid. It treats this as a boolean in most places, but on line 66, it expects it to be a string.
$action_notify = "<p>The import has failed due to the following reasons ; <br/>{$isValid}</p>";
I guess this is meant to show any errors that occured in the validation.
Unfortunately, $isValid is boolean, so it shows nothing (PHP doesn't echo booleans directly).
Unfortunately, if you did return the $allErrors from Validate(), it's would be an Array of errors, so echoing it out won't work anyway.
Paul Newman