Permalink
Browse files

Extended access to support options override

git-svn-id: https://code.elgg.org/elgg/trunk@1272 36083f99-b078-4883-b0ff-0f9b5a30f544
  • Loading branch information...
1 parent 3f5ee14 commit 194fd2b91c047a0c0a505a30b81d86977f651c10 marcus committed Jul 3, 2008
Showing with 6 additions and 3 deletions.
  1. +6 −3 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) {

0 comments on commit 194fd2b

Please sign in to comment.