1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

Merge pull request #3258 from marc1706/ticket/13385

[ticket/13385] Free result in \phpbb\config\db::set_atomic()
This commit is contained in:
Joas Schilling 2015-01-09 18:03:21 +01:00
commit 65ffc76e2f

View File

@ -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;
}