This commit is contained in:
Sieciech 2021-08-07 17:01:52 +02:00
parent d135a4ec75
commit 4d233df896
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class PutEnv {
}
$this->content = file($this->file);
foreach ($this->content as $l => $line) {
if (strlen($line) < 1) {
if (strlen(trim($line)) < 1) {
if ($lineWasEmpty) {
$this->content[$l] = null;
} else {
@ -73,7 +73,7 @@ class PutEnv {
$this->content[] = $line;
}
}
$content = implode("\n", $this->content);
$content = implode('', $this->content);
file_put_contents($this->file, $content);
}
}