Skip to content
Snippets Groups Projects
Commit 4a952ddb authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

prevent php-warnings in courseware-routes, fixes #4834

Closes #4834

Merge request studip/studip!3620
parent 79479dd3
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ class StructuralElementsSharedIndex extends JsonApiController ...@@ -56,7 +56,7 @@ class StructuralElementsSharedIndex extends JsonApiController
$add_content = false; $add_content = false;
foreach ($content->content_approval['users'] as $listedUserPerm) { foreach ($content->content_approval['users'] as $listedUserPerm) {
if ($listedUserPerm['id'] == $user->id && $listedUserPerm['read']) { if ($listedUserPerm['id'] == $user->id && !empty($listedUserPerm['read'])) {
$add_content = true; $add_content = true;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment