]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug commented in my previous commit. Was caused by the
authorstronk7 <stronk7>
Wed, 5 Sep 2007 23:08:52 +0000 (23:08 +0000)
committerstronk7 <stronk7>
Wed, 5 Sep 2007 23:08:52 +0000 (23:08 +0000)
commit itselfl. My fault. (blush)

backup/restorelib.php

index 60616b1b480a6ea02ff5b1cc30e261b6acec0dd8..533b33e0510dd7c340ed87d66106538016505072 100644 (file)
                                           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)) {