From aead30a0419975328348f545768c0470d256b30d Mon Sep 17 00:00:00 2001 From: Philip Klempin Date: Fri, 15 Oct 2021 23:05:50 +0000 Subject: [PATCH] Fix undefined array key "output" when adding new label --- classes/pref/labels.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pref/labels.php b/classes/pref/labels.php index 2cdb919ce..0eb88ea36 100644 --- a/classes/pref/labels.php +++ b/classes/pref/labels.php @@ -160,7 +160,7 @@ class Pref_Labels extends Handler_Protected { function add() { $caption = clean($_REQUEST["caption"]); - $output = clean($_REQUEST["output"]); + $output = clean($_REQUEST["output"] ?? false); if ($caption) { if (Labels::create($caption)) {