X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=da3eb16c3087b9e0982a6dc238865de3b60bc3df;hb=b5d2d32b443f7aa8ec6e0e91f36da3cc0a0f2a82;hp=1309dce47e451e010ed0355a9030525f491de13c;hpb=2f1f6f6fb2c155a02270a20b2955e063152244b3;p=friendica.git diff --git a/mod/item.php b/mod/item.php index 1309dce47e..da3eb16c30 100644 --- a/mod/item.php +++ b/mod/item.php @@ -352,7 +352,8 @@ function item_post(App $a) { $filedas = FileTag::fileToArray($categories); } - $categories = FileTag::listToFile(trim($_REQUEST['category'] ?? ''), 'category'); + $list_array = explode(',', trim($_REQUEST['category'] ?? '')); + $categories = FileTag::arrayToFile($list_array, 'category'); if (!empty($filedas) && is_array($filedas)) { // append the fileas stuff to the new categories list