diff --git a/library/Icinga/File/Ini/IniWriter.php b/library/Icinga/File/Ini/IniWriter.php index 2131bc882..30f134b90 100644 --- a/library/Icinga/File/Ini/IniWriter.php +++ b/library/Icinga/File/Ini/IniWriter.php @@ -95,8 +95,7 @@ class IniWriter { $filePath = isset($filename) ? $filename : $this->filename; $setMode = false === file_exists($filePath); - - if (file_put_contents($filePath, $this->render(), $exclusiveLock ? LOCK_EX : 0) === false) { + if (@file_put_contents($filePath, $this->render(), $exclusiveLock ? LOCK_EX : 0) === false) { throw new Zend_Config_Exception('Could not write to file "' . $filePath . '"'); }