mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 00:42:54 +02:00
checking that there remain $oldwrappedids before deleting them lines 87-..
add if(is_array($oldwrappedids) && count($oldwrappedids)){
This commit is contained in:
parent
aa78ab4cb3
commit
4bc4ca50a6
@ -84,8 +84,10 @@ class embedded_cloze_qtype extends default_questiontype {
|
||||
}
|
||||
|
||||
// Delete redundant wrapped questions
|
||||
$oldwrappedids = implode(',', $oldwrappedids);
|
||||
delete_records_select('question', "id IN ($oldwrappedids)");
|
||||
if(is_array($oldwrappedids) && count($oldwrappedids)){
|
||||
$oldwrappedids = implode(',', $oldwrappedids);
|
||||
delete_records_select('question', "id IN ($oldwrappedids)");
|
||||
}
|
||||
|
||||
if (!empty($sequence)) {
|
||||
$multianswer = new stdClass;
|
||||
|
Loading…
x
Reference in New Issue
Block a user