Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-73826 mod_lti: Fix for Windows/PHP8 with empty curl responses
Sometimes (detected with Windows, when running @ GHA), both the response and the error of a curl request to non-existing URL returns the empty string. In that case, we cannot call to DOMDocument::loadXML() because the 1st param cannot be empty. So here, whenever that happens, we are throwing the moodle_exception earlier, instead of waiting for the XML errors to be processed later.
- Loading branch information