From: Michael Date: Wed, 10 Jan 2024 22:04:02 +0000 (+0000) Subject: Fix warning: E_WARNING: Undefined array key "publish" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41fcfbbaa31aa258cd426050cf8f0eda6ff04635;p=friendica.git Fix warning: E_WARNING: Undefined array key "publish" --- diff --git a/src/Module/Settings/Channels.php b/src/Module/Settings/Channels.php index 1d8e7f8133..d846a91be7 100644 --- a/src/Module/Settings/Channels.php +++ b/src/Module/Settings/Channels.php @@ -114,7 +114,7 @@ class Channels extends BaseSettings 'full-text-search' => $request['text_search'][$id], 'media-type' => ($request['image'][$id] ? 1 : 0) | ($request['video'][$id] ? 2 : 0) | ($request['audio'][$id] ? 4 : 0), 'languages' => $request['languages'][$id], - 'publish' => $request['publish'][$id], + 'publish' => $request['publish'][$id] ?? false, ]); $saved = $this->channel->save($channel); $this->logger->debug('Save channel', ['id' => $id, 'saved' => $saved]);