From: Steffen K9 Date: Sat, 15 Jul 2023 12:41:29 +0000 (+0200) Subject: Fix WSOD when creating a report using PHP8.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b5a49fb5c2c8fdd4b519e1be7305960f54b4caa;p=friendica.git Fix WSOD when creating a report using PHP8.x Fixes https://github.com/friendica/friendica/issues/13277 --- diff --git a/src/Module/Moderation/Report/Create.php b/src/Module/Moderation/Report/Create.php index 0e0e4c925e..019a19cedb 100644 --- a/src/Module/Moderation/Report/Create.php +++ b/src/Module/Moderation/Report/Create.php @@ -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'] ?? []), ]); } }