Installer issue fixed

This commit is contained in:
jitendra 2019-02-11 15:10:47 +05:30
parent 2b382df075
commit b32cff2359
1 changed files with 2 additions and 1 deletions

View File

@ -11,12 +11,13 @@
if (file_exists($envFile)) {
// reading env content
$str= file_get_contents($envFile);
$str = file_get_contents($envFile);
// converting env content to key/value pair
$data = explode(PHP_EOL,$str);
$databaseArray = ['DB_HOST', 'DB_DATABASE', 'DB_USERNAME', 'DB_PASSWORD', 'DB_CONNECTION'];
$key = $value = [];
if ($data) {
foreach ($data as $line) {
$rowValues = explode('=', $line);