Skip to content

Commit

Permalink
Merge pull request #250 from danielneis/fix-user-webservice
Browse files Browse the repository at this point in the history
fix webservice calls when missing user
  • Loading branch information
jleyva authored Oct 3, 2024
2 parents 44a2f36 + e79b6a6 commit 27c5a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/external.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function get_report_data_parameters(): external_function_parameter
* @return array An array with a 'data' JSON string and a 'warnings' string
*/
public static function get_report_data($reportid, int $courseid = 1): array {
global $CFG, $DB;
global $CFG, $DB, $USER;

$params = self::validate_parameters(
self::get_report_data_parameters(),
Expand Down

0 comments on commit 27c5a02

Please sign in to comment.