aboutsummaryrefslogtreecommitdiff
path: root/views/installation/input/dropdown.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-21 07:14:51 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-21 07:14:51 -0400
commit4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2 (patch)
tree0779d4f8a2f1ed074b975076372406042029985c /views/installation/input/dropdown.php
parentbd08504b16ee636eda1b30676799efc22a915613 (diff)
downloadelgg-4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2.tar.gz
elgg-4f5d7c0e9d231a9558cf9d4e681351f3bf1b20f2.tar.bz2
cleaned up input views for installation so that no notices are thrown
Diffstat (limited to 'views/installation/input/dropdown.php')
-rw-r--r--views/installation/input/dropdown.php15
1 files changed, 6 insertions, 9 deletions
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";
-}
?>
-<select name="<?php echo $vars['name']; ?>" <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> class="<?php echo $class; ?>">
+<select name="<?php echo $vars['name']; ?>" class="<?php echo $class; ?>">
<?php
-if ($vars['options_values']) {
- foreach($vars['options_values'] as $value => $option) {
+if (isset($vars['options_values'])) {
+ foreach ($vars['options_values'] as $value => $option) {
if ($value != $vars['value']) {
echo "<option value=\"$value\">{$option}</option>";
} 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 "<option>{$option}</option>";
} else {
@@ -36,4 +33,4 @@ if ($vars['options_values']) {
}
}
?>
-</select> \ No newline at end of file
+</select>