Closed ned-code closed 6 years ago
In block_fn_mentor.php line 206 looks wrong:
if ($students = block_fn_mentor_get_mentees_by_mentor(0, $filter, $USER->id)) {
as '$filter' will be an SQL thing and yet the function block_fn_mentor_get_mentees_by_mentor can expect either 'teacher' or 'mentor'?
This is not a bug
In block_fn_mentor.php line 206 looks wrong:
if ($students = block_fn_mentor_get_mentees_by_mentor(0, $filter, $USER->id)) {
as '$filter' will be an SQL thing and yet the function block_fn_mentor_get_mentees_by_mentor can expect either 'teacher' or 'mentor'?