From c192082b279703927bd7e6e745e650392cfb050a Mon Sep 17 00:00:00 2001 From: Johannes Rauh Date: Mon, 11 Aug 2025 13:11:58 +0200 Subject: [PATCH] Suppress error message --- library/Icinga/File/Ini/IniWriter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 . '"'); }