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.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php
index 91ee2cca8..90ef403be 100644
--- a/views/default/input/access.php
+++ b/views/default/input/access.php
@@ -16,9 +16,12 @@
* @uses $vars['internalname'] The name of the input field
*
*/
-
- $vars['options'] = array();
- $vars['options'] = get_write_access_array();
+
+ if (!is_array($vars['options']))
+ {
+ $vars['options'] = array();
+ $vars['options'] = get_write_access_array();
+ }
if (is_array($vars['options']) && sizeof($vars['options']) > 0) {