[ticket/10006] Remove unneeded if statements

Remove some of the additional `if (isset)` checks

PHPBB3-10006
This commit is contained in:
Erik Frèrejean 2011-01-24 22:35:42 +01:00
parent f93ac340a2
commit 27bbfde243
2 changed files with 0 additions and 10 deletions

View file

@ -113,11 +113,6 @@ class phpbb_config implements ArrayAccess, IteratorAggregate, Countable
*/ */
public function delete($key, $cache = true) public function delete($key, $cache = true)
{ {
if (!isset($this->config[$key]))
{
return;
}
unset($this->config[$key]); unset($this->config[$key]);
} }

View file

@ -100,11 +100,6 @@ class phpbb_config_db extends phpbb_config
*/ */
public function delete($key, $cache = true) public function delete($key, $cache = true)
{ {
if (!isset($this->config[$key]))
{
return;
}
$sql = 'DELETE FROM ' . $this->table . " $sql = 'DELETE FROM ' . $this->table . "
WHERE config_name = '" . $this->db->sql_escape($key) . "'"; WHERE config_name = '" . $this->db->sql_escape($key) . "'";
$this->db->sql_query($sql); $this->db->sql_query($sql);