MDL-31957 Course reset: Add missing global

This commit is contained in:
Eloy Lafuente (stronk7) 2012-08-23 02:04:13 +02:00
parent 0a31b2f308
commit 7f4de36ddb

View File

@ -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',