From 76e5b4713a4673663de7f982e9f634915e67c837 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Wed, 4 Mar 2026 12:26:39 +0100 Subject: check if the module could actually be loaded, re #6260 --- lib/plugins/engine/PluginEngine.php | 10 +++++++--- 1 file 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); + } } } } -- cgit v1.0