format
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user