From 5ef0ef5a23b7f44568d66f270ce04d5628b4492a Mon Sep 17 00:00:00 2001 From: juancp-contidosdixitais <93096561+juancp-contidosdixitais@users.noreply.github.com> Date: Sun, 13 Oct 2024 02:30:20 +0200 Subject: [PATCH] Internal: avoid exception by initializing visibility variable in tool visibility in sessions --- main/inc/lib/course_home.lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/main/inc/lib/course_home.lib.php b/main/inc/lib/course_home.lib.php index 0851962d162..f398d23aa0f 100755 --- a/main/inc/lib/course_home.lib.php +++ b/main/inc/lib/course_home.lib.php @@ -1866,6 +1866,7 @@ public static function getToolVisibility($toolName, $courseId, $sessionId = 0) ); } + $visibility = false; if ($tool) { $visibility = $tool->getVisibility(); }