Skip to content

Commit

Permalink
appropriate json_decode usage in MailRuResourceOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
golodyaevm committed May 14, 2015
1 parent 2e12c7a commit 1ddebd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OAuth/ResourceOwner/MailRuResourceOwner.php
Expand Up @@ -48,7 +48,7 @@ public function getUserInformation(array $accessToken, array $extraParameters =
$url = $this->normalizeUrl($this->options['infos_url'], $params);

$content = $this->doGetUserInformationRequest($url)->getContent();
$content = json_decode($content);
$content = json_decode($content, true);
if (isset($content[0])) {
$content = (array) $content[0];
}
Expand All @@ -74,4 +74,4 @@ protected function configureOptions(OptionsResolverInterface $resolver)
'infos_url' => 'http://www.appsmail.ru/platform/api',
));
}
}
}

0 comments on commit 1ddebd3

Please sign in to comment.