This commit is contained in:
Shish
2020-01-26 16:38:26 +00:00
parent 60dda96fd2
commit 3631084afd
25 changed files with 105 additions and 55 deletions

View File

@ -223,10 +223,9 @@ class SetupBlock extends Block
public function add_choice_option(string $name, array $options, string $label=null, bool $table_row = false)
{
global $config;
if(is_int(array_values($options)[0])) {
if (is_int(array_values($options)[0])) {
$current = $config->get_int($name);
}
else {
} else {
$current = $config->get_string($name);
}