From d2599471cdc0a3601713e80ed629518178bf1def Mon Sep 17 00:00:00 2001 From: fengyuexingzi Date: Tue, 12 Jun 2018 17:40:28 +0800 Subject: [PATCH] auth --- auth/linkedin/index.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/auth/linkedin/index.php b/auth/linkedin/index.php index c2e6c96..880751f 100644 --- a/auth/linkedin/index.php +++ b/auth/linkedin/index.php @@ -15,6 +15,14 @@ $data = [ $info_url = "https://api.linkedin.com/v1/people/~?format=json"; +register_shutdown_function('shutdown'); + +function shutdown() +{ + print_r(error_get_last()); + die('shutdown'); +} + function dump($data) { echo '
';
@@ -45,14 +53,6 @@ dump($result);
 
 die;
 
-register_shutdown_function('shutdown');
-
-function shutdown()
-{
-    print_r(error_get_last());
-    die('shutdown');
-}
-
 $url = "https://www.linkedin.com/oauth/v2/accessToken";
 
 $data = array(