Merge branch 'MDL-36941_master-fix' of git://github.com/markn86/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2018-03-28 17:39:40 +02:00
commit 83c64f78c0
4 changed files with 25 additions and 13 deletions

View file

@ -2191,11 +2191,12 @@ function xmldb_main_upgrade($oldversion) {
}
if ($oldversion < 2018032700.00) {
// Update default search engine to search_simpledb if global search is disabled and there is no solr index defined.
if (empty($CFG->enableglobalsearch) && empty(get_config('search_solr', 'indexname'))) {
set_config('searchengine', 'simpledb');
}
// Main savepoint reached.
upgrade_main_savepoint(true, 2018032700.00);
}