fix
This commit is contained in:
parent
d135a4ec75
commit
4d233df896
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue