Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-32851 resource: skip resources with invalid files

  • Loading branch information...
commit d27076d09e221c6eca0664b967996d6aa0ff3346 1 parent 4dbc9b7
@mackensen mackensen authored samhemelryk committed
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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.