From e434e8feab2c8164f119285c22ebabf90c93bf2a Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 2 Nov 2025 17:44:39 +0100 Subject: [PATCH] Make error handling more strict --- application/models/Lotw_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Lotw_model.php b/application/models/Lotw_model.php index 3df2ccaf5..46a40f380 100644 --- a/application/models/Lotw_model.php +++ b/application/models/Lotw_model.php @@ -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;