Skip to content

Commit

Permalink
Logic fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Jul 15, 2024
1 parent 0aa2699 commit 0db25b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/drawers.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
}
$blockshtml = $OUTPUT->blocks('side-pre');
$hasblocks = (strpos($blockshtml, 'data-block=') !== false || !empty($addblockbutton));
$blocksright = true;
if ($hasblocks) {
$blocksright = true;
if (!$courseindex) {
if ($PAGE->pagetype == 'calendar-view') {
$blocksright = false;
Expand Down

0 comments on commit 0db25b3

Please sign in to comment.