From 00b96c313f88ca6c1ef9604655b1e92e4dc1afd3 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 21 Feb 2024 23:20:27 +0000 Subject: [PATCH] [setup] don't crash if multichoice isn't set --- ext/setup/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/setup/main.php b/ext/setup/main.php index 78352f24..3d001128 100644 --- a/ext/setup/main.php +++ b/ext/setup/main.php @@ -277,7 +277,7 @@ class SetupBlock extends Block */ public function add_multichoice_option(string $name, array $options, string $label = null, bool $table_row = false): void { - $current = $this->config->get_array($name); + $current = $this->config->get_array($name, []); $html = "