From b2e7791ddd85860cbe405ff3f184f32fdc74c9da Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Tue, 12 Jun 2018 17:44:05 +0800 Subject: [PATCH] auth --- auth/linkedin/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/linkedin/index.php b/auth/linkedin/index.php index 880751f..b16c18a 100644 --- a/auth/linkedin/index.php +++ b/auth/linkedin/index.php @@ -42,9 +42,9 @@ function curl_get($url, $data) curl_setopt($ch, CURLOPT_HEADER, false); $result = curl_exec($ch); $info = curl_getinfo($ch); - $result = array_merge($result, $info); + $result = array_merge(json_decode($result, true), $info); curl_close($ch); - return json_decode($result, true); + return $result; } $result = curl_get($info_url, $data);