summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPhilip Klempin <[email protected]>2021-10-15 23:05:50 +0000
committerPhilip Klempin <[email protected]>2021-10-15 23:05:50 +0000
commitaead30a0419975328348f545768c0470d256b30d (patch)
treebc35d66d5c4ed87b0908e39d4b413abfd307b959 /classes
parenta936e806307c280d255aca74b47a49745ff9bed9 (diff)
Fix undefined array key "output" when adding new label
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/labels.php2
1 files changed, 1 insertions, 1 deletions
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)) {