From d888780ed878cfd15e17d3189feb6a0919a1701d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sun, 29 Nov 2020 14:20:47 +0100 Subject: [PATCH] update quotes logic --- app/Utils/Traits/AppSetup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Utils/Traits/AppSetup.php b/app/Utils/Traits/AppSetup.php index f60d31a093d7..8b7d80c21a81 100644 --- a/app/Utils/Traits/AppSetup.php +++ b/app/Utils/Traits/AppSetup.php @@ -131,7 +131,7 @@ trait AppSetup $words_count = count(explode(' ', trim($value))); if (is_null($position)) { - $env[] = "{$property}=" . $value . "\n"; // If we don't have entry for variable in the .env, write it. + $words_count > 1 ? $env[] = "{$property}=" . '"' . $value . '"' . "\n" : $env[] = "{$property}=" . $value . "\n"; } else if ($words_count > 1) { $env[$position] = "{$property}=" . '"' . $value . '"' . "\n"; // If value of variable is more than one word, surround with quotes. } else {