Merge pull request 'Fix undefined array key "output" when adding new label' (#47) from klempin/tt-rss:master into master

Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/47
This commit is contained in:
fox 2021-10-16 08:18:40 +03:00
commit d1ffe6d6cf
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class Pref_Labels extends Handler_Protected {
function add() { function add() {
$caption = clean($_REQUEST["caption"]); $caption = clean($_REQUEST["caption"]);
$output = clean($_REQUEST["output"]); $output = clean($_REQUEST["output"] ?? false);
if ($caption) { if ($caption) {
if (Labels::create($caption)) { if (Labels::create($caption)) {