diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-30 06:57:51 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-30 06:57:51 +0000 |
| commit | cb11393661f5cdf9a1ddacb8cd9602de70f5b8f9 (patch) | |
| tree | a1d34239ca3973ebb9f3b0797d3a8841f0fdec48 /templates/filesystem/topic_folder/edit.php | |
| parent | b506b133d371742ef23b3a22cc1c6bb20c860d40 (diff) | |
fixes #4221issue-4232
Closes #4221
Merge request studip/studip!3064
Diffstat (limited to 'templates/filesystem/topic_folder/edit.php')
| -rw-r--r-- | templates/filesystem/topic_folder/edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/filesystem/topic_folder/edit.php b/templates/filesystem/topic_folder/edit.php index 1ac39af..e4eb6b0 100644 --- a/templates/filesystem/topic_folder/edit.php +++ b/templates/filesystem/topic_folder/edit.php @@ -10,7 +10,7 @@ $topics = CourseTopic::findBySeminar_id($folder->range_id); </option> <? endif; ?> <? foreach ($topics as $one_topic): ?> - <option <?=(@$topic->id === $one_topic->id ? 'selected' : '')?> value="<?= htmlReady($one_topic->id) ?>"> + <option <?= isset($topic) && $topic->id === $one_topic->id ? 'selected' : '' ?> value="<?= htmlReady($one_topic->id) ?>"> <?= htmlReady($one_topic->title) ?> </option> <? endforeach; ?> |
