Commits

Christoffer Niska committed 5fc7ef9

Removed some unused variables.

  • Participants
  • Parent commits 835041d
  • Branches bootstrap2
  • Tags r0.9.8

Comments (0)

Files changed (1)

File widgets/BootActiveForm.php

 		$items = array();
 		$baseID = CHtml::getIdByName($name);
 		$id = 0;
-		$checkAll = true;
 		$method = $checkbox ? 'checkBox' : 'radioButton';
 		$labelCssClass = $checkbox ? 'checkbox' : 'radio';
 
 		foreach ($data as $value => $label)
 		{
 			$checked = !is_array($select) && !strcmp($value, $select) || is_array($select) && in_array($value, $select);
-			$checkAll = $checkAll && $checked;
 			$htmlOptions['value'] = $value;
 			$htmlOptions['id'] = $baseID.'_'.$id++;
 			$option = CHtml::$method($name, $checked, $htmlOptions);