unset($choices);
$choices["0"] = get_string("ajaxno");
$choices["1"] = get_string("ajaxyes");
+ if (empty($CFG->enableajax)) {
+ $user->ajax = 0;
+ }
choose_from_menu ($choices, 'ajax', $user->ajax, '', '', 0, false, empty($CFG->enableajax)) ?>
</td>
</tr>
} else {
unset_user_preference('mailcharset', $user->id);
}
+ if (empty($CFG->enableajax)) {
+ unset($usernew->ajax);
+ }
+
$usernew->maildigest = clean_param($usernew->maildigest, PARAM_INT);
$usernew->autosubscribe = clean_param($usernew->autosubscribe, PARAM_INT);
if (!empty($CFG->htmleditor)) {