@@ 2691-2695 (lines=5) @@ | ||
2688 | $htmlOptions = array(); |
|
2689 | if (is_array($title) && (!isset($title['name']) || !isset($title['value']))) { |
|
2690 | if (!empty($name)) { |
|
2691 | if ($attributes['style'] === 'checkbox') { |
|
2692 | $select[] = $this->Html->useTag('fieldsetend'); |
|
2693 | } else { |
|
2694 | $select[] = $this->Html->useTag('optiongroupend'); |
|
2695 | } |
|
2696 | $parents[] = $name; |
|
2697 | } |
|
2698 | $select = array_merge($select, $this->_selectOptions( |
|
@@ 2704-2708 (lines=5) @@ | ||
2701 | ||
2702 | if (!empty($name)) { |
|
2703 | $name = $attributes['escape'] ? h($name) : $name; |
|
2704 | if ($attributes['style'] === 'checkbox') { |
|
2705 | $select[] = $this->Html->useTag('fieldsetstart', $name); |
|
2706 | } else { |
|
2707 | $select[] = $this->Html->useTag('optiongroup', $name, ''); |
|
2708 | } |
|
2709 | } |
|
2710 | $name = null; |
|
2711 | } elseif (is_array($title)) { |