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

prevent php-warnings in courseware, fixes #4664

Closes #4664

Merge request studip/studip!3474
parent eb48c488
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ class BlocksEditBlocker extends RelationshipsController ...@@ -39,7 +39,7 @@ class BlocksEditBlocker extends RelationshipsController
} }
} }
$related->edit_blocker_id = $editor->id; $related->edit_blocker_id = $editor->id ?? null;
$related->store(); $related->store();
return $this->getCodeResponse(204); return $this->getCodeResponse(204);
......
...@@ -39,7 +39,7 @@ class ContainersEditBlocker extends RelationshipsController ...@@ -39,7 +39,7 @@ class ContainersEditBlocker extends RelationshipsController
} }
} }
$related->edit_blocker_id = $editor->id; $related->edit_blocker_id = $editor->id ?? null;
$related->store(); $related->store();
return $this->getCodeResponse(204); return $this->getCodeResponse(204);
......
...@@ -39,7 +39,7 @@ class StructuralElementsEditBlocker extends RelationshipsController ...@@ -39,7 +39,7 @@ class StructuralElementsEditBlocker extends RelationshipsController
} }
} }
$related->edit_blocker_id = $editor->id; $related->edit_blocker_id = $editor->id ?? null;
$related->store(); $related->store();
return $this->getCodeResponse(204); return $this->getCodeResponse(204);
......
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