Fixed winkey state errors
这个提交包含在:
父节点
be4b34feec
当前提交
4d10db1fc0
共有 2 个文件被更改,包括 5 次插入 和 2 次删除
|
|
@ -739,6 +739,9 @@ class User extends CI_Controller
|
||||||
|
|
||||||
|
|
||||||
$post_data = $this->input->post();
|
$post_data = $this->input->post();
|
||||||
|
if (!isset($post_data['user_winkey'])) {
|
||||||
|
$post_data['user_winkey'] = '0';
|
||||||
|
}
|
||||||
if (!isset($post_data['user_winkey_websocket'])) {
|
if (!isset($post_data['user_winkey_websocket'])) {
|
||||||
$post_data['user_winkey_websocket'] = '0';
|
$post_data['user_winkey_websocket'] = '0';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -266,8 +266,8 @@ class User_Model extends CI_Model {
|
||||||
'user_quicklog' => xss_clean($fields['user_quicklog']),
|
'user_quicklog' => xss_clean($fields['user_quicklog']),
|
||||||
'user_quicklog_enter' => xss_clean($fields['user_quicklog_enter']),
|
'user_quicklog_enter' => xss_clean($fields['user_quicklog_enter']),
|
||||||
'language' => xss_clean($fields['language']),
|
'language' => xss_clean($fields['language']),
|
||||||
'winkey' => xss_clean($fields['user_winkey']),
|
'winkey' => isset($fields['user_winkey']) ? xss_clean($fields['user_winkey']) : 0,
|
||||||
'winkey_websocket' => xss_clean($fields['user_winkey_websocket']),
|
'winkey_websocket' => isset($fields['user_winkey_websocket']) ? xss_clean($fields['user_winkey_websocket']) : 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->db->query("replace into user_options (user_id, option_type, option_name, option_key, option_value) values (" . $fields['id'] . ", 'hamsat','hamsat_key','api','".xss_clean($fields['user_hamsat_key'])."');");
|
$this->db->query("replace into user_options (user_id, option_type, option_name, option_key, option_value) values (" . $fields['id'] . ", 'hamsat','hamsat_key','api','".xss_clean($fields['user_hamsat_key'])."');");
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用