]> git.mxchange.org Git - friendica.git/commitdiff
Ensure $categories is set in mod/item
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 5 Jun 2020 01:32:47 +0000 (21:32 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 5 Jun 2020 01:32:47 +0000 (21:32 -0400)
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-639052328

mod/item.php

index 6671d9439335e8c91be42923fd189269e5fa32d4..b023b97d19ef5a014edf9192dfc5494def96a27b 100644 (file)
@@ -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'];