diff --git a/library/Director/Settings.php b/library/Director/Settings.php index 165416d2..214b2489 100644 --- a/library/Director/Settings.php +++ b/library/Director/Settings.php @@ -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; }