diff --git a/src/Formfield.php b/src/Formfield.php index 7506d7e..a508779 100644 --- a/src/Formfield.php +++ b/src/Formfield.php @@ -239,7 +239,7 @@ class Formfield // If more than one title is set, the main label is unusable, so // do not link it to the checkbox // If there is no label on the checkbox, this label must be set - $res .= " for='" . $this->formName . "_"; + $res .= " for='" . $this->formName . "_"; $res .= htmlspecialchars($this->name, ENT_QUOTES); $res .= "'"; } @@ -487,7 +487,7 @@ class Formfield // If more than one title is set, the main label is unusable, so // do not link it to the radio // If there is no label on the checkbox, this label must be set - $res .= " for='" . $this->formName . "_"; + $res .= " for='" . $this->formName . "_"; $res .= htmlspecialchars($this->name, ENT_QUOTES); $res .= "'"; } @@ -1045,7 +1045,7 @@ class Formfield // If more than one title is set, the main label is unusable, so // do not link it to the checkbox // If there is no label on the checkbox, this label must be set - $res .= " for='" . $this->formName . "_"; + $res .= " for='" . $this->formName . "_"; $res .= htmlspecialchars($this->name, ENT_QUOTES); $res .= "'"; } @@ -1311,7 +1311,7 @@ class Formfield // If more than one title is set, the main label is unusable, so // do not link it to the radio // If there is no label on the checkbox, this label must be set - $res .= " for='" . $this->formName . "_"; + $res .= " for='" . $this->formName . "_"; $res .= htmlspecialchars($this->name, ENT_QUOTES); $res .= "'"; } @@ -1690,7 +1690,7 @@ class Formfield if ($this->titlewidth > 0) { $res .= " class='col-sm-$this->titlewidth col-form-label'"; } - $res .= " for='" . $this->formName . "_"; + $res .= " for='" . $this->formName . "_"; $res .= htmlspecialchars($this->name, ENT_QUOTES) . "'"; if (isset($this->hidden) && $this->hidden !== false) { $res .= " style='display:none'";