Fixed winkey state errors

pull/3294/head
Peter Goodhall 2025-07-15 14:23:53 +01:00
rodzic be4b34feec
commit 4d10db1fc0
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -739,6 +739,9 @@ class User extends CI_Controller
$post_data = $this->input->post();
if (!isset($post_data['user_winkey'])) {
$post_data['user_winkey'] = '0';
}
if (!isset($post_data['user_winkey_websocket'])) {
$post_data['user_winkey_websocket'] = '0';
}

Wyświetl plik

@ -266,8 +266,8 @@ class User_Model extends CI_Model {
'user_quicklog' => xss_clean($fields['user_quicklog']),
'user_quicklog_enter' => xss_clean($fields['user_quicklog_enter']),
'language' => xss_clean($fields['language']),
'winkey' => xss_clean($fields['user_winkey']),
'winkey_websocket' => xss_clean($fields['user_winkey_websocket']),
'winkey' => isset($fields['user_winkey']) ? xss_clean($fields['user_winkey']) : 0,
'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'])."');");