Skip to content
Snippets Groups Projects
Commit 6710a2fd authored by André Noack's avatar André Noack
Browse files

Resolve "Fatal Error in ResponsiveHelper, leere Anzeige auf allen Seiten"

Closes #3403

Merge request studip/studip!2314
parent 9ff54330
No related branches found
No related tags found
No related merge requests found
...@@ -254,10 +254,10 @@ class ResponsiveHelper ...@@ -254,10 +254,10 @@ class ResponsiveHelper
if ($studip_module instanceof StudipModule) { if ($studip_module instanceof StudipModule) {
$tool_nav = $studip_module->getTabNavigation($course->id) ?: []; $tool_nav = $studip_module->getTabNavigation($course->id) ?: [];
foreach ($tool_nav as $nav_name => $navigation) { foreach ($tool_nav as $nav_name => $navigation) {
if (!empty($tool->metadata['displayname'])) {
$navigation->setTitle($tool->getDisplayname());
}
if ($nav_name && is_a($navigation, 'Navigation')) { if ($nav_name && is_a($navigation, 'Navigation')) {
if (!empty($tool->metadata['displayname'])) {
$navigation->setTitle($tool->getDisplayname());
}
$cnav['children'][$path . '/' . $nav_name] = [ $cnav['children'][$path . '/' . $nav_name] = [
'icon' => $navigation->getImage() ? $navigation->getImage()->asImagePath() : '', 'icon' => $navigation->getImage() ? $navigation->getImage()->asImagePath() : '',
'title' => $navigation->getTitle(), 'title' => $navigation->getTitle(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment