Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-32851 resource: skip resources with invalid files

  • Loading branch information...
commit d27076d09e221c6eca0664b967996d6aa0ff3346 1 parent 4dbc9b7
Charles Fulton authored May 29, 2012 samhemelryk committed July 04, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  mod/resource/db/upgradelib.php
2  mod/resource/db/upgradelib.php
@@ -138,6 +138,8 @@ function resource_20_migrate() {
138 138
             // try migration of main file - ignore if does not exist
139 139
             if ($file = resourcelib_try_file_migration($resource->mainfile, $candidate->cmid, $candidate->course, 'mod_resource', 'content', 0)) {
140 140
                 $resource->mainfile = $file->get_filepath().$file->get_filename();
  141
+            } else {
  142
+                continue;
141 143
             }
142 144
         }
143 145
 

0 notes on commit d27076d

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