From 974a5c375dc130c8e1108ea3a7cf9a2674ab0419 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Wed, 19 Jan 2022 13:40:05 +0100 Subject: [PATCH] use the same check as in my_courses, fixes #557 --- lib/models/BlubberThread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/BlubberThread.php b/lib/models/BlubberThread.php index cccaa3de928..0be5cd2676a 100644 --- a/lib/models/BlubberThread.php +++ b/lib/models/BlubberThread.php @@ -459,7 +459,7 @@ class BlubberThread extends SimpleORMap implements PrivacyObject if ($module = $tool->getStudipModule()) { $last_visit = object_get_visit($this['context_id'], $module->getPluginId()); $nav = $module->getIconNavigation($this['context_id'], $last_visit, $GLOBALS['user']->id); - if ($nav) { + if (isset($nav) && $nav->isVisible(true)) { $icons[] = $nav; } if ($module instanceof CoreSchedule) { -- GitLab