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