Settings: delete NULL-value settings
This commit is contained in:
parent
061705f52d
commit
687f2aff1c
|
@ -58,6 +58,17 @@ class Settings
|
|||
{
|
||||
$db = $this->db;
|
||||
|
||||
if ($value === null) {
|
||||
$updated = $db->delete(
|
||||
'director_setting',
|
||||
$db->quoteInto('setting_name = ?', $name)
|
||||
);
|
||||
|
||||
unset($this->cache[$name]);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
if ($this->getSetting($name) === $value) {
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue