Skip to content
Browse files

Merge branch 'MDL-32851-22' of https://github.com/mackensen/moodle in…

…to MOODLE_22_STABLE
  • Loading branch information...
2 parents 547695f + a00d309 commit dcce2171604e77299480c200cbe90fc3ff3ce09f Sam Hemelryk committed Jul 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 mod/resource/db/upgradelib.php
View
2 mod/resource/db/upgradelib.php
@@ -138,6 +138,8 @@ function resource_20_migrate() {
// try migration of main file - ignore if does not exist
if ($file = resourcelib_try_file_migration($resource->mainfile, $candidate->cmid, $candidate->course, 'mod_resource', 'content', 0)) {
$resource->mainfile = $file->get_filepath().$file->get_filename();
+ } else {
+ continue;
}
}

0 comments on commit dcce217

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