ned-code / moodle-block_mentor

7 stars 13 forks source link

block_fn_mentor.php line 206 #44

Closed ned-code closed 6 years ago

ned-code commented 7 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'?

ned-code commented 6 years ago

This is not a bug