catalyst / moodle-tool_excimer

A Moodle tool to find bottlenecks in your code safely in production
https://moodle.org/plugins/tool_excimer
GNU General Public License v3.0
13 stars 9 forks source link

PHP message: PHP Warning: rawurlencode() expects parameter 1 to be string, array given #367

Open x-iy opened 1 month ago

x-iy commented 1 month ago

PHP warning created when accessing webservice eg.

/webservice/rest/server.php?wstoken=xxxxxxxxxxxxxx&wsfunction=core_course_get_courses&options[ids][0]=8804&moodlewsrestformat=json

PHP message: PHP Warning: rawurlencode() expects parameter 1 to be string, array given in /var/www/site/lib/weblib.php on line 522

Due to this line: https://github.com/catalyst/moodle-tool_excimer/blob/MOODLE_35_STABLE/classes/script_metadata.php#L143