He bajado y aplicado tu versión y me manda el siguiente error:
Notice: Trying to get property of non-object in C:\xampp\htdocs\moodle\mod\assignment\lib.php on line 298
Table 'moodle.assignment_submissions' doesn't exist
SELECT count(*) as sin_calificar FROM assignment_submissions a, user b, role_assignments c, context d WHERE a.assignment=8 AND b.id=a.userid AND b.deleted=0 AND b.auth not like 'nologin' and a.grade=-1 AND d.instanceid=20 AND c.contextid=d.id AND c.userid=b.id
SELECT count(*) as sin_calificar FROM assignment_submissions a, user b, role_assignments c, context d WHERE a.assignment=8 AND b.id=a.userid AND b.deleted=0 AND b.auth not like 'nologin' and a.grade=-1 AND d.instanceid=20 AND c.contextid=d.id AND c.userid=b.id
- line 686 of lib\dmllib.php: call to debugging()
- line 481 of lib\dmllib.php: call to get_recordset_sql()
- line 298 of mod\assignment\lib.php: call to get_record_sql()
- line 145 of mod\assignment\lib.php: call to assignment_base->submittedlink()
- line 25 of mod\assignment\type\upload\assignment.class.php: call to assignment_base->view_header()
- line 39 of mod\assignment\view.php: call to assignment_upload->view()
Seguí tus instrucciones pero no me funciona, espero me puedas ayudar.
Gracias.