Skip to content

Commit 5ef0ef5

Browse files
Internal: avoid exception by initializing visibility variable in tool visibility in sessions
1 parent bd06031 commit 5ef0ef5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/inc/lib/course_home.lib.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,6 +1866,7 @@ public static function getToolVisibility($toolName, $courseId, $sessionId = 0)
18661866
);
18671867
}
18681868

1869+
$visibility = false;
18691870
if ($tool) {
18701871
$visibility = $tool->getVisibility();
18711872
}

0 commit comments

Comments
 (0)