diff options
| -rw-r--r-- | phpBB/phpbb/config/db.php | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/config/db.php b/phpBB/phpbb/config/db.php index ef20ebf62a..26489bdd34 100644 --- a/phpBB/phpbb/config/db.php +++ b/phpBB/phpbb/config/db.php @@ -145,9 +145,9 @@ class db extends \phpbb\config\config  			$sql .= " AND config_value = '" . $this->db->sql_escape($old_value) . "'";  		} -		$result = $this->db->sql_query($sql); +		$this->db->sql_query($sql); -		if (!$this->db->sql_affectedrows($result) && isset($this->config[$key])) +		if (!$this->db->sql_affectedrows() && isset($this->config[$key]))  		{  			return false;  		}  | 
