summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-02-05 18:31:58 +0100
committerDerek Allard <derek.allard@ellislab.com>2009-02-05 18:31:58 +0100
commit86a840cc46ec3f0b8a83938e665a52e625b9f3c7 (patch)
tree12b103df9121d423d9d8de1767a2669eec210af4
parent42b2e1738d56f6ce08b104aedacf0f204c8ee1a9 (diff)
wrong var fix
-rw-r--r--system/helpers/form_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/form_helper.php b/system/helpers/form_helper.php
index 01d0ea76d..8cae91a41 100644
--- a/system/helpers/form_helper.php
+++ b/system/helpers/form_helper.php
@@ -275,7 +275,7 @@ if ( ! function_exists('form_dropdown'))
foreach ($val as $optgroup_key => $optgroup_val)
{
- $sel = (in_array($key, $selected)) ? ' selected="selected"' : '';
+ $sel = (in_array($optgroup_key, $selected)) ? ' selected="selected"' : '';
$form .= '<option value="'.$optgroup_key.'"'.$sel.'>'.(string) $optgroup_val."</option>\n";
}