mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 11:23:52 +02:00
Merge branch 'MDL-64314-master-upgrade-fix' of git://github.com/abgreeve/moodle
This commit is contained in:
commit
b7b914fbdc
@ -2721,8 +2721,10 @@ function xmldb_main_upgrade($oldversion) {
|
||||
|
||||
if ($oldversion < 2019021500.01) {
|
||||
$insights = $DB->get_record('message_providers', ['component' => 'moodle', 'name' => 'insights']);
|
||||
$insights->capability = null;
|
||||
$DB->update_record('message_providers', $insights);
|
||||
if (!empty($insights)) {
|
||||
$insights->capability = null;
|
||||
$DB->update_record('message_providers', $insights);
|
||||
}
|
||||
upgrade_main_savepoint(true, 2019021500.01);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user