aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 16:55:59 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 16:55:59 +0000
commit62d82935fcb7214467bd3f99518fa15b43c31966 (patch)
tree67514f218b27bcc171c7a02d72aa4cf68b099fa6
parent1a1f4b115a8ac9aed812bb2231dec9944b557837 (diff)
downloadelgg-62d82935fcb7214467bd3f99518fa15b43c31966.tar.gz
elgg-62d82935fcb7214467bd3f99518fa15b43c31966.tar.bz2
Closes #664: Defaults added to radio buttons
git-svn-id: https://code.elgg.org/elgg/trunk@2548 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/groups/views/default/forms/groups/edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/groups/views/default/forms/groups/edit.php b/mod/groups/views/default/forms/groups/edit.php
index 267e9bb5b..66d2419df 100644
--- a/mod/groups/views/default/forms/groups/edit.php
+++ b/mod/groups/views/default/forms/groups/edit.php
@@ -64,7 +64,7 @@
echo elgg_view("input/radio",array(
"internalname" => "pages_enable",
- "value" => $vars['entity']->pages_enable,
+ "value" => $vars['entity']->pages_enable ? $vars['entity']->pages_enable : 'yes',
'options' => array(
elgg_echo('groups:yes') => 'yes',
elgg_echo('groups:no') => 'no',
@@ -80,7 +80,7 @@
echo elgg_view("input/radio",array(
"internalname" => "forum_enable",
- "value" => $vars['entity']->forum_enable,
+ "value" => $vars['entity']->forum_enable ? $vars['entity']->forum_enable : 'yes',
'options' => array(
elgg_echo('groups:yes') => 'yes',
elgg_echo('groups:no') => 'no',
@@ -96,7 +96,7 @@
echo elgg_view("input/radio",array(
"internalname" => "files_enable",
- "value" => $vars['entity']->files_enable,
+ "value" => $vars['entity']->files_enable ? $vars['entity']->files_enable : 'yes',
'options' => array(
elgg_echo('groups:yes') => 'yes',
elgg_echo('groups:no') => 'no',