Show boolean field correctly
parent
83fd64cf51
commit
8ada088ebb
|
@ -24,10 +24,15 @@ function renderConfig($configPart, $indent, $platform=false, $parent='') {
|
||||||
$indent = 0;
|
$indent = 0;
|
||||||
} else {
|
} else {
|
||||||
// if it's not array, just display it
|
// if it's not array, just display it
|
||||||
?>
|
if ($config_item === 'registration_enabled') { ?>
|
||||||
|
<div class="border col-md-8 text-start">
|
||||||
|
<?= ($config_value === 1 || $config_value === true) ? 'true' : 'false' ?>
|
||||||
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
<div class="border col-md-8 text-start">
|
<div class="border col-md-8 text-start">
|
||||||
<?= htmlspecialchars($config_value ?? '')?>
|
<?= htmlspecialchars($config_value ?? '')?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in New Issue