Skip to content

Commit

Permalink
Internal: avoid exception by initializing visibility variable in tool…
Browse files Browse the repository at this point in the history
… visibility in sessions
  • Loading branch information
juancp-contidosdixitais authored Oct 13, 2024
1 parent bd06031 commit 5ef0ef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/inc/lib/course_home.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,7 @@ public static function getToolVisibility($toolName, $courseId, $sessionId = 0)
);
}

$visibility = false;
if ($tool) {
$visibility = $tool->getVisibility();
}
Expand Down

0 comments on commit 5ef0ef5

Please sign in to comment.