diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index f70895ad60..3232f6bfe1 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -431,12 +431,12 @@ App::get('/v1/functions/runtimes') $allowList = \array_filter(\explode(',', System::getEnv('_APP_FUNCTIONS_RUNTIMES', ''))); $allowed = []; - foreach ($runtimes as $key => $runtime) { - if (!empty($allowList) && !\in_array($key, $allowList)) { + foreach ($runtimes as $id => $runtime) { + if (!empty($allowList) && !\in_array($id, $allowList)) { continue; } - $runtime['$id'] = $key; + $runtime['$id'] = $id; $allowed[] = $runtime; }