When I try to add an activity calling $curl->get( in mod_form.php gives the following error
Fehler: http_build_query(): Argument #1 ($data) must be of type array, resource given
[Weitere Informationen über diesen Fehler](http://docs.moodle.org/400/de/error/moodle/generalexceptionmessage)
Debug-Info:
Error code: generalexceptionmessage
Stack trace:
line 3984 of /lib/filelib.php: TypeError thrown
line 3984 of /lib/filelib.php: call to http_build_query()
line 196 of /mod/orcalti/mod_form.php: call to curl->get()
line 218 of /mod/orcalti/mod_form.php: call to mod_orcalti_mod_form->get_content_by_url()
line 446 of /mod/orcalti/mod_form.php: call to mod_orcalti_mod_form->get_orcalti_tools()
line 214 of /lib/formslib.php: call to mod_orcalti_mod_form->definition()
line 131 of /course/moodleform_mod.php: call to moodleform->__construct()
line 152 of /course/modedit.php: call to moodleform_mod->__construct()
Actually, $result_json = $curl->get(rtrim(rtrim($request_url, " "), "/") . $subpath, $request_context); passes a context object not an array.
When I try to add an activity calling
$curl->get(
in mod_form.php gives the following errorActually,
$result_json = $curl->get(rtrim(rtrim($request_url, " "), "/") . $subpath, $request_context);
passes a context object not an array.