diff --git a/ext/setup/main.php b/ext/setup/main.php
index 8af9513a..86af0141 100644
--- a/ext/setup/main.php
+++ b/ext/setup/main.php
@@ -184,15 +184,19 @@ class SetupBlock extends Block
global $config;
$checked = $config->get_bool($name) ? " checked" : "";
- $html = "\n";
- if (!is_null($label)) {
+ $html = "";
+ if(!$table_row&&!is_null($label)) {
+ $html .= "";
+ }
+
+ $html .= "\n";
+ if ($table_row && !is_null($label)) {
$html .= "";
- $label = null;
}
$html .= "\n";
- $this->format_option($name, $html, $label, $table_row);
+ $this->format_option($name, $html, null, $table_row);
}
// public function add_hidden_option($name, $label=null) {