From 18eb23437def557d8faf40e5c1d6372d2545ae4b Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 9 May 2024 09:44:43 +0200 Subject: [PATCH] allow to remove lotw, eqsl and clublog password from db --- application/models/User_model.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/application/models/User_model.php b/application/models/User_model.php index cd29c6e20..a362e6574 100644 --- a/application/models/User_model.php +++ b/application/models/User_model.php @@ -300,19 +300,25 @@ class User_Model extends CI_Model { } } - if($fields['user_lotw_password'] != NULL) + if($fields['user_lotw_password'] != '') { $data['user_lotw_password'] = $fields['user_lotw_password']; + } else { + $data['user_lotw_password'] = NULL; } - if($fields['user_clublog_password'] != NULL) + if($fields['user_clublog_password'] != '') { $data['user_clublog_password'] = $fields['user_clublog_password']; + } else { + $data['user_clublog_password'] = NULL; } - if($fields['user_eqsl_password'] != NULL) + if($fields['user_eqsl_password'] != '') { $data['user_eqsl_password'] = $fields['user_eqsl_password']; + } else { + $data['user_eqsl_password'] = NULL; } // Update the user