aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-03 11:04:22 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-03 11:04:22 +0000
commit194fd2b91c047a0c0a505a30b81d86977f651c10 (patch)
treedcf81202c14ef215b273a92eba5f6297f1932f66
parent3f5ee1483beaa46de93c27660780a126b12efeee (diff)
downloadelgg-194fd2b91c047a0c0a505a30b81d86977f651c10.tar.gz
elgg-194fd2b91c047a0c0a505a30b81d86977f651c10.tar.bz2
Extended access to support options override
git-svn-id: https://code.elgg.org/elgg/trunk@1272 36083f99-b078-4883-b0ff-0f9b5a30f544
-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) {