mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Make error handling more strict
This commit is contained in:
@@ -149,7 +149,7 @@ class Lotw_model extends CI_Model {
|
||||
function remove_lotw_credentials($user_id = null) {
|
||||
$sql = "UPDATE ".$this->config->item('auth_table')." SET user_lotw_password = '' WHERE user_id = ?;";
|
||||
$query = $this->db->query($sql, array($user_id));
|
||||
if ($this->db->affected_rows() > 0) {
|
||||
if ($this->db->affected_rows() == 1) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user