mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-14679 minor dml conversion errors in quiz backup
This commit is contained in:
parent
7ddafd1bc8
commit
2bc710366d
@ -208,7 +208,7 @@
|
||||
{quiz} q
|
||||
WHERE q.course = ? AND
|
||||
g.quiz = q.id AND
|
||||
g.question = t.id",false, array($course));
|
||||
g.question = t.id", array($course));
|
||||
if ($categories) {
|
||||
foreach ($categories as $key => $category) {
|
||||
$exist = $DB->get_record('question_categories', array('id' => $key));
|
||||
|
@ -442,7 +442,7 @@
|
||||
* Insert code to identify categories to later insert all question ids later eg. course, quiz or other module name.
|
||||
*/
|
||||
function question_insert_q_ids($backup_unique_code, $info){
|
||||
global $CFG;
|
||||
global $CFG,$DB;
|
||||
//put the ids of the questions from all these categories into the db.
|
||||
$status = $DB->execute("INSERT INTO {backup_ids} (backup_code, table_name, old_id, info)
|
||||
SELECT '$backup_unique_code', 'question', q.id, ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user