From: stronk7 <stronk7> Date: Wed, 5 Sep 2007 23:08:52 +0000 (+0000) Subject: Fixed bug commented in my previous commit. Was caused by the X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce1b9645923073cbff0704e1083c46bcb3c9867d;p=moodle.git Fixed bug commented in my previous commit. Was caused by the commit itselfl. My fault. (blush) --- diff --git a/backup/restorelib.php b/backup/restorelib.php index 60616b1b48..533b33e051 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -2869,7 +2869,7 @@ sql_compare_text('description') . " = " . sql_compare_text($literal_description); } - if ($gro_db = get_record_sql("SELECT * + if (!$gro_db = get_record_sql("SELECT * FROM {$CFG->prefix}groups WHERE courseid = $restore->course_id AND name = '{$gro->name}'" . $description_clause)) {