diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-03-14 19:12:37 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-03-14 19:12:37 +0000 |
| commit | 676abf645a0b1327d9c31032bf402235124d146c (patch) | |
| tree | b2f7820125b9669e46b33945198b983471695dce | |
| parent | bcd037b443344c084cefa106c2bad46b98ccb45a (diff) | |
fixes #3741
Closes #3741
Merge request studip/studip!2599
| -rw-r--r-- | app/views/shared/contacts/range.php | 2 | ||||
| -rw-r--r-- | lib/models/OERMaterial.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/contacts/range.php b/app/views/shared/contacts/range.php index c61e43e..d66c494 100644 --- a/app/views/shared/contacts/range.php +++ b/app/views/shared/contacts/range.php @@ -70,7 +70,7 @@ ?> </td> </tr> - <? if ($range_id == $mvv_contact->range_id && $contact_id == $mvv_contact->contact_id) : ?> + <? if ($range_id == $mvv_contact->range_id && ($contact_id ?? null) == $mvv_contact->contact_id) : ?> <tr class="loaded-details nohover"> <?= $this->render_partial('shared/contacts/details', compact('mvv_contact')) ?> </tr> diff --git a/lib/models/OERMaterial.php b/lib/models/OERMaterial.php index 9de4298..94559ef 100644 --- a/lib/models/OERMaterial.php +++ b/lib/models/OERMaterial.php @@ -632,9 +632,9 @@ class OERMaterial extends SimpleORMap $user['contact_type'] = "oercampus"; } $user['name'] = $userdata['name']; - $user['avatar_url'] = $userdata['avatar'] ?: null; + $user['avatar_url'] = $userdata['avatar'] ?? null; $userdata = $user['data'] ? $user['data']->getArrayCopy() : []; - $userdata['description'] = $userdata['description'] ?: null; + $userdata['description'] = $userdata['description'] ?? null; $user['data'] = $userdata; $user->store(); |
