mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-31957 Course reset: Add missing global
This commit is contained in:
parent
0a31b2f308
commit
7f4de36ddb
@ -718,7 +718,7 @@ class completion_info {
|
||||
* Used by course reset page.
|
||||
*/
|
||||
public function delete_all_completion_data() {
|
||||
global $DB;
|
||||
global $DB, $SESSION;
|
||||
|
||||
// Delete from database.
|
||||
$DB->delete_records_select('course_modules_completion',
|
||||
|
Loading…
x
Reference in New Issue
Block a user