diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index f1ddd01df..fc97ca695 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -686,7 +686,7 @@ class HtmlHelper extends AppHelper { if (($selected != null) && ($selected == $name)) { $optionsHere['selected'] = 'selected'; - } else if(is_array($selected) && in_array($title, $selected)) { + } else if(is_array($selected) && in_array($name, $selected)) { $optionsHere['selected'] = 'selected'; }