Merge pull request #13283 from AlfredSK/AlfredSK-fix-wsod-creating-report

Fix WSOD when creating a report using PHP8.x
This commit is contained in:
Hypolite Petovan 2023-07-15 09:20:45 -04:00 committed by GitHub
commit ff092833ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ class Create extends BaseModule
'$category' => $category,
'$rules' => $rules ?? [],
'$comment' => BBCode::convert($this->session->get('report_comment') ?? '', false, ),
'$posts' => count($request['uri-ids']),
'$posts' => count($request['uri-ids'] ?? []),
]);
}
}