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