diff --git a/support/helpers.php b/support/helpers.php index e9ce52c..3c47c5f 100644 --- a/support/helpers.php +++ b/support/helpers.php @@ -137,7 +137,10 @@ if (!function_exists('get_env')) { { $dir = str_replace('\\', '/', realpath(__DIR__ . '/../')); $env_path = $dir . '/.env'; - $env_info = parse_ini_file($env_path, true); + $env_info = []; + if (is_file($env_path)) { + $env_info = parse_ini_file($env_path, true); + } return $env_info[$var] ?? ''; } }