Merge pull request #13870 from annando/channel-languages
Fix: Saving of channel languages
This commit is contained in:
commit
d9d42105d6
2 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ class UserDefinedChannel extends \Friendica\BaseRepository
|
|||
'max-size' => $Channel->maxSize,
|
||||
'full-text-search' => $Channel->fullTextSearch,
|
||||
'media-type' => $Channel->mediaType,
|
||||
'languages' => serialize($Channel->languages),
|
||||
'languages' => !empty($Channel->languages) ? serialize($Channel->languages) : null,
|
||||
'publish' => $Channel->publish,
|
||||
'valid' => $this->isValid($Channel->fullTextSearch),
|
||||
];
|
||||
|
|
|
@ -101,7 +101,7 @@ class Channels extends BaseSettings
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!array_diff((array)$request['languages'][$id], $channel_languages)) {
|
||||
if (!array_diff((array)$request['languages'][$id], $channel_languages) && (count((array)$request['languages'][$id]) == count($channel_languages))) {
|
||||
$request['languages'][$id] = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue