Closed danmarsden closed 1 year ago
The query_db function is an override of the table_sql class, which I had to bring to this class because it needed some changes.
The original function uses get_recordset_sql.
Whoops obviously not looking close enough while doing that quick review! Yep you're right, I missed this was extending the flexible table core stuff.
https://github.com/EduardoKrausME/moodle-mod_supervideo/blob/master/classes/report/supervideo_view.php#L355
simplest option is to just change this to a get_records_sql() call instead of a get_recordset_sql() call - not closing recordsets can cause all sorts of grief that is very hard to trace! :-)