diff --git a/library/Icinga/Legacy/DashboardConfig.php b/library/Icinga/Legacy/DashboardConfig.php index 08b564602..54cd3b78f 100644 --- a/library/Icinga/Legacy/DashboardConfig.php +++ b/library/Icinga/Legacy/DashboardConfig.php @@ -77,6 +77,9 @@ class DashboardConfig extends Config public function saveIni($filePath = null, $fileMode = 0660) { parent::saveIni($filePath, $fileMode); + if ($filePath === null) { + $filePath = $this->configFile; + } foreach (static::listConfigFilesForUser($this->user) as $file) { if ($file !== $filePath) { @unlink($file);