diff --git a/mod/item.php b/mod/item.php index 6671d9439..b023b97d1 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'];