MDL-14679 minor dml conversion errors in quiz backup

This commit is contained in:
sam_marshall 2008-07-01 13:19:24 +00:00
parent 7ddafd1bc8
commit 2bc710366d
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

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