From 9751f8549b061a1a216badf371be7020ef382888 Mon Sep 17 00:00:00 2001 From: phpnut Date: Fri, 2 Feb 2007 04:58:38 +0000 Subject: [PATCH] Adding fix for #2012 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4404 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }