diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-07 12:45:22 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-07 12:45:22 +0000 |
commit | b8a00eb11c817edcea1d4148f2675e69a1db5805 (patch) | |
tree | 627a453f549c6ef411bb5f425be27c65c06919c0 /views/default/notifications/settings/usersettings.php | |
parent | 4904ed24816685ab2df1e9fe88e5f2cbb0b4e9f9 (diff) | |
download | elgg-b8a00eb11c817edcea1d4148f2675e69a1db5805.tar.gz elgg-b8a00eb11c817edcea1d4148f2675e69a1db5805.tar.bz2 |
Fixes 334: Radio buttons were part of the problem, label and option were the wrong way round (compare with input/checkboxes).
Second part of the problem was actually with views/default/notifications/settings/usersettings.php, where the value of the field was incorrectly being extracted from the settings array.
Thanks for the spot!
git-svn-id: https://code.elgg.org/elgg/trunk@2058 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/notifications/settings/usersettings.php')
-rw-r--r-- | views/default/notifications/settings/usersettings.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/views/default/notifications/settings/usersettings.php b/views/default/notifications/settings/usersettings.php index 4bf43e254..02a4e67b4 100644 --- a/views/default/notifications/settings/usersettings.php +++ b/views/default/notifications/settings/usersettings.php @@ -11,7 +11,8 @@ */
global $NOTIFICATION_HANDLERS;
- $notification_settings = get_user_notification_settings(page_owner());
+ $notification_settings = get_user_notification_settings(page_owner()); +
?>
<h3><?php echo elgg_echo('notifications:usersettings'); ?></h3>
@@ -29,12 +30,12 @@ <td>
<?php
- if ($notification_settings->k) {
+ if ($notification_settings->$k) {
$val = "yes";
} else {
$val = "no";
}
- echo elgg_view('input/radio',array('internalname' => "method[{$k}]", 'options' => array('yes','no'), 'value' => $val));
+ echo elgg_view('input/radio',array('internalname' => "method[{$k}]", 'options' => array('yes' => 'yes','no' => 'no'), 'value' => $val));
?>
</td>
|