IniWriter: Avoid deprecation notice upon write errors

This commit is contained in:
Johannes Meyer 2024-08-13 11:36:31 +02:00
parent c27b43fb75
commit d06ce98d2f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {