<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
$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