Merge pull request #8730 from MrPetovan/bug/fatal-errors

Ensure $categories is set in mod/item
2022.09-rc
Michael Vogel 2020-06-05 05:59:36 +02:00 zatwierdzone przez GitHub
commit a3fabd57a3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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'];