From d6fd5b273bfcf3883139a7a1f1fb79a8c1b69540 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 4 Jun 2020 21:32:47 -0400 Subject: [PATCH] Ensure $categories is set in mod/item - Address https://github.com/friendica/friendica/issues/8473#issuecomment-639052328 --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/item.php b/mod/item.php index 6671d94393..b023b97d19 100644 --- a/mod/item.php +++ b/mod/item.php @@ -245,7 +245,7 @@ function item_post(App $a) { $verb = $orig_post['verb']; $objecttype = $orig_post['object-type']; $app = $orig_post['app']; - $categories = $orig_post['file']; + $categories = $orig_post['file'] ?? ''; $title = Strings::escapeTags(trim($_REQUEST['title'])); $body = trim($body); $private = $orig_post['private']; -- 2.39.5