diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/input/access.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php index ea4654be6..523c0aaf4 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -5,24 +5,25 @@ * * @package Elgg * @subpackage Core - - * * @uses $vars['value'] The current value, if any - * @uses $vars['js'] Any Javascript to enter into the input tag + * @uses $vars['options_values'] * @uses $vars['internalname'] The name of the input field - * */ $defaults = array( 'class' => 'elgg-input-access', 'disabled' => FALSE, 'value' => get_default_access(), - 'options' => get_write_access_array(), + 'options_values' => get_write_access_array(), ); $vars = array_merge($defaults, $vars); -if (is_array($vars['options']) && sizeof($vars['options']) > 0) { +if ($vars['value'] == ACCESS_DEFAULT) { + $vars['value'] = get_default_access(); +} + +if (is_array($vars['options_values']) && sizeof($vars['options_values']) > 0) { echo elgg_view('input/dropdown', $vars); }
\ No newline at end of file |