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);
}

View File

@ -44,7 +44,9 @@ class SetupTheme extends Themelet
$h_rows = "";
ksort($options);
foreach ($options as $name => $value) {
if(is_null($value)) $value = '';
if (is_null($value)) {
$value = '';
}
$h_name = html_escape($name);
$h_value = html_escape((string)$value);