Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 8beba6e

Browse files
committed
Hotfix title change, it was broken since moderator update if you had no moderator.
1 parent 187fe37 commit 8beba6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Controller/StreamUpdate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public function __invoke(Request $request): Response
3434

3535
$form->handleRequest($request);
3636
if ($form->isSubmitted() && $form->isValid()) {
37-
$user = $form->get('account')->getData();
37+
if ($form->has('account')) {
38+
$user = $form->get('account')->getData();
39+
}
3840
$streamTitle->setCreator($user);
3941
foreach ($user->getAccounts() as $account) {
4042
if ($account->getPlatform()->isEnabled()) {

0 commit comments

Comments
 (0)