1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update Installer.php

This commit is contained in:
Shlee 2020-02-16 19:34:36 +08:00 committed by GitHub
parent a5117fcfa3
commit 2a82788ab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ class Installer extends Command
$envPath = app()->environmentFilePath();
$payload = file_get_contents($envPath);
if ($existing == $this->existingEnv($key, $payload)) {
if ($existing = $this->existingEnv($key, $payload)) {
$payload = str_replace("{$key}={$existing}", "{$key}=\"{$value}\"", $payload);
$this->storeEnv($payload);
} else {