Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 194fd2b91c047a0c0a505a30b81d86977f651c10 1 parent 3f5ee14
marcus authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 views/default/input/access.php
View
9 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.