aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/radio.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/radio.php')
-rw-r--r--views/default/input/radio.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/radio.php b/views/default/input/radio.php
index 8304d0737..fe7335b8a 100644
--- a/views/default/input/radio.php
+++ b/views/default/input/radio.php
@@ -20,6 +20,10 @@ if (!$class) {
$class = "input_radio";
}
+if (!isset($vars['value']) || $vars['value'] === FALSE) {
+ $vars['value'] = elgg_get_sticky_value($vars['internalname']);
+}
+
foreach($vars['options'] as $label => $option) {
if (strtolower($option) != strtolower($vars['value'])) {
$selected = "";