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:26:47 +0100 |
| commit | 76e5b4713a4673663de7f982e9f634915e67c837 (patch) | |
| tree | 8f22b2245962958633779706b0c68da43ae71966 /lib/plugins | |
| parent | 0da0929e00bfb1bd12f7eb08df8c0ceb44fcecde (diff) | |
check if the module could actually be loaded, re #6260
Diffstat (limited to 'lib/plugins')
| -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 f6cb832..dbeeb73 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); + } } } } |
