diff options
Diffstat (limited to 'backend/functions/api.php')
-rw-r--r-- | backend/functions/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/functions/api.php b/backend/functions/api.php index 843e410..1a0cc43 100644 --- a/backend/functions/api.php +++ b/backend/functions/api.php @@ -4,7 +4,7 @@ function execute_command_with_all($description, $command, $vital=true, $path=nul if (isset($task)) end_internal_task(); $default_env=array( - 'PATH' => $_ENV['PATH'] + 'PATH' => getenv('PATH') ); $env=is_array($env)?array_merge($default_env, $env):$default_env; $task=new sql_task($build->id, task_get_order(), 'exec', $description, $command); |