diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-04 12:26:39 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-04 12:27:15 +0100 |
| commit | 9b405f9537bb9c5a9b3c3a769e61d7267c722126 (patch) | |
| tree | adf74c035815d995181fec1873f492469fc9db37 | |
| parent | 18bab8dfa7b75706626063420f5a13fcdc034592 (diff) | |
check if the module could actually be loaded, re #6260
| -rw-r--r-- | lib/plugins/engine/PluginEngine.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/plugins/engine/PluginEngine.php b/lib/plugins/engine/PluginEngine.php index 24966ee..a8edc02 100644 --- a/lib/plugins/engine/PluginEngine.php +++ b/lib/plugins/engine/PluginEngine.php @@ -59,10 +59,14 @@ class PluginEngine if ($plugin_manager->isPluginActivated($id, $context_id)) { $navigation = Navigation::getItem('/course'); $module = $plugin_manager->getPluginById($id); - $tabs = $module->getTabNavigation($context_id); - if ($navigation && $tabs) { - $navigation->addToolNavigation($id, $tabs); + if ($module) { + /** @var StudipModule $module */ + $tabs = $module->getTabNavigation($context_id); + + if ($navigation && $tabs) { + $navigation->addToolNavigation($id, $tabs); + } } } } |
