Skip to content

Commit

Permalink
MDL-8605 Upgrade of user folder will not occur if the user folder alr…
Browse files Browse the repository at this point in the history
…eady exists
  • Loading branch information
nicolasconnault committed Oct 16, 2007
1 parent 24028ab commit 2d4cf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/upgrade.php
Expand Up @@ -2540,7 +2540,7 @@ function xmldb_main_upgrade($oldversion=0) {
upgrade_main_savepoint($result, 2007100903);
}

if ($result && $oldversion < 2007101500) {
if ($result && $oldversion < 2007101500 && !file_exists($CFG->dataroot . '/user')) {
// Get list of users by browsing moodledata/user
$oldusersdir = $CFG->dataroot . '/users';
$folders = get_directory_list($oldusersdir, '', false, true, false);
Expand Down

0 comments on commit 2d4cf36

Please sign in to comment.