From 4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Fri, 21 Oct 2011 07:14:51 -0400 Subject: cleaned up input views for installation so that no notices are thrown --- views/installation/input/dropdown.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'views/installation/input/dropdown.php') diff --git a/views/installation/input/dropdown.php b/views/installation/input/dropdown.php index 46e15c657..cf875492e 100644 --- a/views/installation/input/dropdown.php +++ b/views/installation/input/dropdown.php @@ -10,16 +10,13 @@ * the value displayed on the button. Replaces $vars['options'] when defined. */ +$class = "elgg-input-dropdown"; -$class = $vars['class']; -if (!$class) { - $class = "elgg-input-dropdown"; -} ?> - $option) { +if (isset($vars['options_values'])) { + foreach ($vars['options_values'] as $value => $option) { if ($value != $vars['value']) { echo ""; } else { @@ -27,7 +24,7 @@ if ($vars['options_values']) { } } } else { - foreach($vars['options'] as $option) { + foreach ($vars['options'] as $option) { if ($option != $vars['value']) { echo ""; } else { @@ -36,4 +33,4 @@ if ($vars['options_values']) { } } ?> - \ No newline at end of file + -- cgit v1.2.3