Fix warning: E_WARNING: Undefined array key "publish"
This commit is contained in:
parent
61555657c3
commit
ad15b7b256
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class Channels extends BaseSettings
|
||||||
'full-text-search' => $request['text_search'][$id],
|
'full-text-search' => $request['text_search'][$id],
|
||||||
'media-type' => ($request['image'][$id] ? 1 : 0) | ($request['video'][$id] ? 2 : 0) | ($request['audio'][$id] ? 4 : 0),
|
'media-type' => ($request['image'][$id] ? 1 : 0) | ($request['video'][$id] ? 2 : 0) | ($request['audio'][$id] ? 4 : 0),
|
||||||
'languages' => $request['languages'][$id],
|
'languages' => $request['languages'][$id],
|
||||||
'publish' => $request['publish'][$id],
|
'publish' => $request['publish'][$id] ?? false,
|
||||||
]);
|
]);
|
||||||
$saved = $this->channel->save($channel);
|
$saved = $this->channel->save($channel);
|
||||||
$this->logger->debug('Save channel', ['id' => $id, 'saved' => $saved]);
|
$this->logger->debug('Save channel', ['id' => $id, 'saved' => $saved]);
|
||||||
|
|
Loading…
Reference in a new issue