Skip to content

Commit

Permalink
Silence file_get_contents call
Browse files Browse the repository at this point in the history
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".
  • Loading branch information
Johannes Meyer committed Oct 6, 2014
1 parent 04ff2e2 commit d54bfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Config/PreservingIniWriter.php
Expand Up @@ -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();
Expand Down

0 comments on commit d54bfdd

Please sign in to comment.