PHP Notice: Undefined property: stdClass::$userid in /report/trainingsessions/userreport.php on line 50
PHP Notice: Undefined property: stdClass::$userid in /report/trainingsessions/userreport.php on line 51
PHP Notice: Undefined property: stdClass::$userid in /report/trainingsessions/userreport.php on line 113
Perhaps adding the line
global $USER;
before line 50 can fix this error as there you refer to the global $USER variable:
$data->userid = optional_param('userid', $USER->id, PARAM_INT);
PHP Notice: Undefined property: stdClass::$userid in /report/trainingsessions/userreport.php on line 50 PHP Notice: Undefined property: stdClass::$userid in /report/trainingsessions/userreport.php on line 51 PHP Notice: Undefined property: stdClass::$userid in /report/trainingsessions/userreport.php on line 113
Perhaps adding the line global $USER; before line 50 can fix this error as there you refer to the global $USER variable: $data->userid = optional_param('userid', $USER->id, PARAM_INT);