mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-83529 Analytics: Upgrade can break if core module is deleted
This commit is contained in:
parent
269a8a8a1b
commit
ee6251345d
@ -788,7 +788,7 @@ class manager {
|
||||
if (preg_match('~^\\\\mod_([^\\\\]+)\\\\~', $indicator, $matches)) {
|
||||
if (!$allmodules) {
|
||||
// The first time, get all modules.
|
||||
$allmodules = \core\plugin_manager::instance()->get_plugins_of_type('mod');
|
||||
$allmodules = \core\plugin_manager::instance()->get_present_plugins('mod');
|
||||
}
|
||||
if (!array_key_exists($matches[1], $allmodules)) {
|
||||
// Module does not exist, so skip indicator.
|
||||
|
Loading…
x
Reference in New Issue
Block a user