Merged fix for MDL-8803 from 1.8
This commit is contained in:
+1
-2
@@ -339,8 +339,7 @@ function xmldb_main_upgrade($oldversion=0) {
|
||||
$index->setFields(array('username'));
|
||||
drop_index($table, $index);
|
||||
$index->setFields(array('mnethostid', 'username'));
|
||||
$empty_on_duplicate = add_index($table, $index);
|
||||
if(empty($fail_on_duplicate)) {
|
||||
if (!add_index($table, $index)) {
|
||||
notify(get_string('duplicate_usernames', 'mnet', 'http://docs.moodle.org/en/DuplicateUsernames'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user