diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-21 08:50:04 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-21 08:50:04 +0000 |
| commit | 718af22cd0390ef68410677a227450c55acad6ef (patch) | |
| tree | 254d6f7baa8e5ea411e0e718c1a96f2bae1e70f0 /templates | |
| parent | 1d9a107f0ff8eb77c8666b124fab471dd68c6bb1 (diff) | |
prevent php8 warning (eigth batch of changes), re #2193
Merge request studip/studip!1429
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/calendar/entries/grouped_entry.php | 2 | ||||
| -rw-r--r-- | templates/header.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/calendar/entries/grouped_entry.php b/templates/calendar/entries/grouped_entry.php index 990052d..9e88215 100644 --- a/templates/calendar/entries/grouped_entry.php +++ b/templates/calendar/entries/grouped_entry.php @@ -21,7 +21,7 @@ $element_id = md5(uniqid()); style="top: <?= $top ?>px; height: <?= $height ?>px; width: <?= str_replace(',', '.', $width) ?>%<?= ($col > 0) ? ';left:'. str_replace(',', '.', $col * $width) .'%' : '' ?>" title="<?= htmlReady(implode(', ', $title)) ?>"> - <a <?= $entry['url'] ? ' href="'.$entry['url'].'"' : '' ?> + <a <?= isset($entry['url']) ? ' href="'.$entry['url'].'"' : '' ?> <?= $entry[0]['onClick'] ? 'onClick="STUDIP.Calendar.clickEngine(' . $entry[0]['onClick'] . ', this, event); return false;"' : '' ?>> <!-- for safari5 we need to set the height for the dl as well --> diff --git a/templates/header.php b/templates/header.php index 51620ce..3911b20 100644 --- a/templates/header.php +++ b/templates/header.php @@ -324,7 +324,7 @@ if ($navigation) { // need to handle institutes separately (always visible) if (isset($GLOBALS['SessSemName']['class']) && $GLOBALS['SessSemName']['class'] === 'inst') { $public_hint = _('öffentliche Einrichtung'); - } else if (Course::findCurrent()->lesezugriff == 0) { + } else if (Course::findCurrent() && !Course::findCurrent()->lesezugriff) { $public_hint = _('öffentliche Veranstaltung'); } } |
