From: toyomoyo Date: Mon, 26 Nov 2007 03:21:46 +0000 (+0000) Subject: expecting multiple groups from sql X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=90164c70982ff7518cec70a6e1e8b627ac2328d0;p=moodle.git expecting multiple groups from sql --- diff --git a/backup/restorelib.php b/backup/restorelib.php index b4b6b1dfc7..9aa9edb833 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -2900,7 +2900,7 @@ echo '

Updating config for block ', $instance->id, '.

'; if (!$gro_db = get_record_sql("SELECT * FROM {$CFG->prefix}groups WHERE courseid = $restore->course_id AND - name = '{$gro->name}'" . $description_clause)) { + name = '{$gro->name}'" . $description_clause, true)) { //If it doesn't exist, create $newid = insert_record('groups', $gro);