diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-11 19:14:32 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-11 19:14:32 +0000 |
commit | d3334ef71b8e71e0db6c463436555f406941d5c9 (patch) | |
tree | cd4109bcc0d7abf2528cf5940e6c132c3e98b01a /views/default/input/access.php | |
parent | 982d56d370ba021e17a6e8548cdeb26345a89380 (diff) | |
download | elgg-d3334ef71b8e71e0db6c463436555f406941d5c9.tar.gz elgg-d3334ef71b8e71e0db6c463436555f406941d5c9.tar.bz2 |
Implemented sticky forms.
git-svn-id: http://code.elgg.org/elgg/trunk@5368 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/access.php')
-rw-r--r-- | views/default/input/access.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php index e93b47cd1..2515180ce 100644 --- a/views/default/input/access.php +++ b/views/default/input/access.php @@ -30,6 +30,9 @@ if (!array_key_exists('value', $vars) || $vars['value'] == ACCESS_DEFAULT) { $vars['value'] = get_default_access(); } +if (!isset($vars['value']) || $vars['value'] === FALSE) { + $vars['value'] = elgg_get_sticky_value($vars['internalname']); +} if ((!isset($vars['options'])) || (!is_array($vars['options']))) { $vars['options'] = array(); |