Scripts: Add memory freeing in script to remove test duplicates - refs BT#19212

pull/4286/head
Yannick Warnier 4 years ago
parent ce585d621d
commit e3e7a39420
  1. 1
      tests/scripts/delete_duplicate_tests.php

@ -261,6 +261,7 @@ while ($course = Database::fetch_assoc($resCourse)) {
}
$deletedTestsCount++;
}
unset($exercise);
} else {
//echo "Found test ".$test['iid']." included in a learning path in ".$course['code'].". Not deleting.".PHP_EOL;
$sql2b = "SELECT question_id FROM c_quiz_rel_question WHERE c_id = ".$course['id']." AND exercice_id = ".$test['iid'];

Loading…
Cancel
Save