]> git.mxchange.org Git - friendica.git/commitdiff
Fix WSOD when creating a report using PHP8.x
authorSteffen K9 <admin@libranet.de>
Sat, 15 Jul 2023 12:41:29 +0000 (14:41 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jul 2023 12:41:29 +0000 (14:41 +0200)
Fixes https://github.com/friendica/friendica/issues/13277

src/Module/Moderation/Report/Create.php

index 0e0e4c925e8a0d28861dc2045cbf9c370cc57aa0..019a19cedb31ae988742dca6054c216cd4ddae68 100644 (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'] ?? []),
                ]);
        }
 }