Skip to content
Snippets Groups Projects
Commit 91901ab9 authored by Sadashiv Dalvi's avatar Sadashiv Dalvi
Browse files

Fixing double json encoding

parent 76d88545
Branches
Tags 8.x-3.0-rc1
No related merge requests found
......@@ -205,7 +205,10 @@ class GoogleApiServiceClient extends ConfigEntityBase implements GoogleApiServic
* {@inheritdoc}
*/
public function setAuthConfig($config) {
return $this->auth_config = Json::encode($config);
if (is_array($config)) {
$config = Json::encode($config);
}
return $this->auth_config = $config;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment