summaryrefslogtreecommitdiff
path: root/src/views/pages/users/individual.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/pages/users/individual.html.php')
-rw-r--r--src/views/pages/users/individual.html.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/views/pages/users/individual.html.php b/src/views/pages/users/individual.html.php
index 9e3048a..6b23e0e 100644
--- a/src/views/pages/users/individual.html.php
+++ b/src/views/pages/users/individual.html.php
@@ -15,12 +15,19 @@ function inputTextarea($user, $key, $label, $hint='') {
!$user->canEdit());
}
+function inputBool($user, $key, $label, $hint='') {
+ global $VARS; $t = $VARS['template'];
+ $current_setting = $user->getConf($key)=='true';
+ $t->inputBool("user_$key", $label, $hint, $current_setting,
+ !$user->canEdit());
+}
+
function inputArray($user, $key, $arr) {
global $VARS; $t = $VARS['template'];
$defaults = $user->getConfArray($key);
foreach ($arr as $value => $label) {
- $t->inputBool($name, $value, $label,
+ $t->inputBoolArray($key, $value, $label,
in_array($value, $defaults), !$user->canEdit());
}
}