mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
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…
x
Reference in New Issue
Block a user