MDL-69758 Web services: core_get_course_contents PHP warnings
authorsam marshall <s.marshall@open.ac.uk>
Mon, 21 Sep 2020 14:24:10 +0000 (15:24 +0100)
committersam marshall <s.marshall@open.ac.uk>
Mon, 21 Sep 2020 14:24:12 +0000 (15:24 +0100)
commit2a15d7d3eaf5ee1254849602de611bb54b978651
tree74dda1fb99bee27cb832fea526e31919cadfe076
parentf852aa8ad5546b8c40a5176078195c3de113b026
MDL-69758 Web services: core_get_course_contents PHP warnings

Calls to core_get_course_contents can cause PHP warnings in the server
log if there are any URL instances in the course with sketchy URLs.
This is because url_export_contents incorrectly returns null instead
of an empty array if there is an error.
mod/url/lib.php