1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00

Fixes #798 Setup error

This commit is contained in:
Hillel Coren 2016-04-09 23:00:55 +03:00
parent 263fe35923
commit 65164cbaf3

View File

@ -100,7 +100,10 @@ class AppController extends BaseController
$config = '';
foreach ($_ENV as $key => $val) {
if (preg_match('/\s/',$val)) {
if (is_array($val)) {
continue;
}
if (preg_match('/\s/', $val)) {
$val = "'{$val}'";
}
$config .= "{$key}={$val}\n";