Skip to content
Browse files

Merge branch 'MDL-34837-22' of git://github.com/FMCorz/moodle into MO…

…ODLE_22_STABLE
  • Loading branch information...
2 parents 67ba008 + e4ce1be commit 2407b73f18c6549cac354b4dc7eefe3b43aacf3c @danpoltawski danpoltawski committed Oct 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 backup/util/dbops/restore_dbops.class.php
View
3 backup/util/dbops/restore_dbops.class.php
@@ -1302,7 +1302,8 @@ public static function calculate_course_names($courseid, $fullname, $shortname)
}
$currentfullname = $fullname.$suffixfull;
$currentshortname = substr($shortname, 0, 100 - strlen($suffixshort)).$suffixshort; // < 100cc
- $coursefull = $DB->get_record_select('course', 'fullname = ? AND id != ?', array($currentfullname, $courseid));
+ $coursefull = $DB->get_record_select('course', 'fullname = ? AND id != ?',
+ array($currentfullname, $courseid), '*', IGNORE_MULTIPLE);
$courseshort = $DB->get_record_select('course', 'shortname = ? AND id != ?', array($currentshortname, $courseid));
$counter++;
} while ($coursefull || $courseshort);

0 comments on commit 2407b73

Please sign in to comment.
Something went wrong with that request. Please try again.