From 8b5a49fb5c2c8fdd4b519e1be7305960f54b4caa Mon Sep 17 00:00:00 2001 From: Steffen K9 Date: Sat, 15 Jul 2023 14:41:29 +0200 Subject: [PATCH] Fix WSOD when creating a report using PHP8.x Fixes https://github.com/friendica/friendica/issues/13277 --- src/Module/Moderation/Report/Create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] ?? []), ]); } }