From d54bfddee47be6b3834c5b5048662780d5acba64 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 6 Oct 2014 16:55:20 +0200 Subject: [PATCH] Silence file_get_contents call Since an earlier change already made the existence of config files not required we do not care about any E_WARNING or notice emitted by "file_get_contents". --- library/Icinga/Config/PreservingIniWriter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Config/PreservingIniWriter.php b/library/Icinga/Config/PreservingIniWriter.php index 2cafd5416c..c459471a48 100644 --- a/library/Icinga/Config/PreservingIniWriter.php +++ b/library/Icinga/Config/PreservingIniWriter.php @@ -101,7 +101,7 @@ public function render() $this->_config = $this->normalizeKeys($this->_config); $newconfig = $this->_config; - $editor = new IniEditor(file_get_contents($this->_filename), $this->options); + $editor = new IniEditor(@file_get_contents($this->_filename), $this->options); $this->diffConfigs($oldconfig, $newconfig, $editor); $this->updateSectionOrder($newconfig, $editor); return $editor->getText();