aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/config/db.php
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2011-01-24 16:43:09 +0100
committerErik Frèrejean <erikfrerejean@phpbb.com>2011-04-18 12:28:47 +0200
commitf93ac340a298dae9f45d99ea2b418532942bd423 (patch)
tree1ad9ca7d3221daa480157b77c2e24a5dcc4e13f5 /phpBB/includes/config/db.php
parent503b87da481d5a77091b519144e8b862b4569f80 (diff)
downloadforums-f93ac340a298dae9f45d99ea2b418532942bd423.tar
forums-f93ac340a298dae9f45d99ea2b418532942bd423.tar.gz
forums-f93ac340a298dae9f45d99ea2b418532942bd423.tar.bz2
forums-f93ac340a298dae9f45d99ea2b418532942bd423.tar.xz
forums-f93ac340a298dae9f45d99ea2b418532942bd423.zip
[ticket/10006] Remove return values
Remove some unneeded return values PHPBB3-10006
Diffstat (limited to 'phpBB/includes/config/db.php')
-rw-r--r--phpBB/includes/config/db.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/includes/config/db.php b/phpBB/includes/config/db.php
index f0c9a5d591..caa2cff7f1 100644
--- a/phpBB/includes/config/db.php
+++ b/phpBB/includes/config/db.php
@@ -96,23 +96,18 @@ class phpbb_config_db extends phpbb_config
* @param String $key The configuration option's name
* @param bool $cache Whether this variable should be cached or if it
* changes too frequently to be efficiently cached
- * @return bool True if the configuration entry was deleted successfully,
- * otherwise false
+ * @return void
*/
public function delete($key, $cache = true)
{
if (!isset($this->config[$key]))
{
- return false;
+ return;
}
$sql = 'DELETE FROM ' . $this->table . "
WHERE config_name = '" . $this->db->sql_escape($key) . "'";
$this->db->sql_query($sql);
- if (!$this->db->sql_affectedrows())
- {
- return false;
- }
unset($this->config[$key]);