mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-15 09:54:23 +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()
|
public function render()
|
||||||
{
|
{
|
||||||
if (file_exists($this->filename)) {
|
if ($this->filename !== null && file_exists($this->filename)) {
|
||||||
$oldconfig = Config::fromIni($this->filename);
|
$oldconfig = Config::fromIni($this->filename);
|
||||||
$content = trim(file_get_contents($this->filename));
|
$content = trim(file_get_contents($this->filename));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user