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…
Reference in New Issue