Merge branch 'MDL-29062' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-08-29 02:39:42 +02:00
commit 52d935de27

View file

@ -141,14 +141,14 @@ class qtype_multianswer extends question_type {
if ($previousid != 0 && $previousid != $wrapped->id) {
// for some reasons a new question has been created
// so delete the old one
delete_question($previousid);
question_delete_question($previousid);
}
}
// Delete redundant wrapped questions
if (is_array($oldwrappedquestions) && count($oldwrappedquestions)) {
foreach ($oldwrappedquestions as $oldwrappedquestion) {
delete_question($oldwrappedquestion->id);
question_delete_question($oldwrappedquestion->id);
}
}