From: Hypolite Petovan Date: Fri, 5 Jun 2020 01:32:47 +0000 (-0400) Subject: Ensure $categories is set in mod/item X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6fd5b273bfcf3883139a7a1f1fb79a8c1b69540;p=friendica.git Ensure $categories is set in mod/item - Address https://github.com/friendica/friendica/issues/8473#issuecomment-639052328 --- 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'];