aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/access.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/access.php')
-rw-r--r--views/default/input/access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php
index dfd23df1d..693a8da4a 100644
--- a/views/default/input/access.php
+++ b/views/default/input/access.php
@@ -17,10 +17,10 @@
*
*/
- $class = $vars['class'];
+ if (isset($vars['class'])) $class = $vars['class'];
if (!$class) $class = "input-access";
- if (!is_array($vars['options']))
+ if ((!isset($vars['options'])) || (!is_array($vars['options'])))
{
$vars['options'] = array();
$vars['options'] = get_write_access_array();
@@ -30,7 +30,7 @@
?>
-<select name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['js'])) echo $vars['js']; ?> <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> class="<?php echo $class; ?>">
+<select name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['js'])) echo $vars['js']; ?> <?php if ((isset($vars['disabled'])) && ($vars['disabled'])) echo ' disabled="yes" '; ?> class="<?php echo $class; ?>">
<?php
foreach($vars['options'] as $key => $option) {