mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
IniWriter: Avoid deprecation notice upon write errors
This commit is contained in:
parent
c27b43fb75
commit
d06ce98d2f
@ -69,7 +69,7 @@ class IniWriter
|
||||
*/
|
||||
public function render()
|
||||
{
|
||||
if (file_exists($this->filename)) {
|
||||
if ($this->filename !== null && file_exists($this->filename)) {
|
||||
$oldconfig = Config::fromIni($this->filename);
|
||||
$content = trim(file_get_contents($this->filename));
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user