try fix: empty array to json, heroku error.
This commit is contained in:
+1
-2
@@ -255,9 +255,8 @@ function getHerokuConfig($function_name, $apikey)
|
||||
|
||||
function setHerokuConfig($env, $function_name, $apikey)
|
||||
{
|
||||
//sortConfig($env);
|
||||
$data = json_encode($env);
|
||||
return HerokuAPI('PATCH', 'https://api.heroku.com/apps/' . $function_name . '/config-vars', $data, $apikey);
|
||||
if (substr($data, 0, 1)=='{') return HerokuAPI('PATCH', 'https://api.heroku.com/apps/' . $function_name . '/config-vars', $data, $apikey);
|
||||
}
|
||||
|
||||
function updateHerokuapp($function_name, $apikey, $source)
|
||||
|
||||
Reference in New Issue
Block a user