/** * Ensures that that both '' and '0' don't get set as selected at the same time * * @param $option * @param array $selected * @return string */ protected function _optionToHtml($option, $selected) { if (count($selected) > 0 && trim($selected[0]) === '') { $selected = array(); } return parent::_optionToHtml($option, $selected); }