diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-09 18:03:21 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-09 18:03:21 +0100 |
commit | 65ffc76e2fa9ccc0820b668768a2e63b3a354539 (patch) | |
tree | 352f20e12a178cfea7be41a11c5a9ff357de5258 /phpBB | |
parent | b64da23fe182cbfd72d614e5e2bb357063e7b84a (diff) | |
parent | 38f184ad6b18c6d6f0c9368bcd02eda5cb45ef10 (diff) | |
download | forums-65ffc76e2fa9ccc0820b668768a2e63b3a354539.tar forums-65ffc76e2fa9ccc0820b668768a2e63b3a354539.tar.gz forums-65ffc76e2fa9ccc0820b668768a2e63b3a354539.tar.bz2 forums-65ffc76e2fa9ccc0820b668768a2e63b3a354539.tar.xz forums-65ffc76e2fa9ccc0820b668768a2e63b3a354539.zip |
Merge pull request #3258 from marc1706/ticket/13385
[ticket/13385] Free result in \phpbb\config\db::set_atomic()
Diffstat (limited to 'phpBB')
-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; } |