@@ -200,13 +200,14 @@ |
||
| 200 | 200 | $input = new Element($tag, $content, $attributes, false); |
| 201 | 201 | |
| 202 | 202 | if($label_text){ |
| 203 | - if (!empty($attributes['label-wrap'])) |
|
| 204 | - $ret = self::label(null, $label_text.$input); |
|
| 205 | - else |
|
| 206 | - $ret = self::label($attributes['id'], $label_text).$input; |
|
| 203 | + if (!empty($attributes['label-wrap'])) { |
|
| 204 | + $ret = self::label(null, $label_text.$input); |
|
| 205 | + } else { |
|
| 206 | + $ret = self::label($attributes['id'], $label_text).$input; |
|
| 207 | + } |
|
| 208 | + } else { |
|
| 209 | + $ret = $input; |
|
| 207 | 210 | } |
| 208 | - else |
|
| 209 | - $ret = $input; |
|
| 210 | 211 | |
| 211 | 212 | return (string)$ret; |
| 212 | 213 | } |