]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
And again ...
[friendica.git] / mod / item.php
index 1309dce47e451e010ed0355a9030525f491de13c..da3eb16c3087b9e0982a6dc238865de3b60bc3df 100644 (file)
@@ -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