From 38308f887b3916bb427cb29d92861e26d8eb1025 Mon Sep 17 00:00:00 2001 From: kagla Date: Mon, 23 Aug 2021 07:24:24 +0000 Subject: [PATCH] =?UTF-8?q?=ED=8A=B8=EC=9C=84=ED=84=B0=20=EC=86=8C?= =?UTF-8?q?=EC=85=9C=20=EB=8C=93=EA=B8=80=20=EC=82=AC=EC=9A=A9=EC=8B=9C=20?= =?UTF-8?q?Could=20not=20connect=20to=20Twitter.=20Refresh=20the=20page=20?= =?UTF-8?q?or=20try=20again=20later.=20=EC=9D=B4=EC=A0=84=EC=97=90=20?= =?UTF-8?q?=EB=82=98=EC=98=A4=EB=8A=94=20Warning:=20Undefined=20array=20ke?= =?UTF-8?q?y=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/sns/twitter/redirect.php | 4 ++-- plugin/sns/twitter/twitteroauth/twitteroauth.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/sns/twitter/redirect.php b/plugin/sns/twitter/redirect.php index 4bc1586aa..505b3e047 100644 --- a/plugin/sns/twitter/redirect.php +++ b/plugin/sns/twitter/redirect.php @@ -13,8 +13,8 @@ $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET); $request_token = $connection->getRequestToken(OAUTH_CALLBACK); /* Save temporary credentials to session. */ -$_SESSION['oauth_token'] = $token = $request_token['oauth_token']; -$_SESSION['oauth_token_secret'] = $request_token['oauth_token_secret']; +$_SESSION['oauth_token'] = $token = @$request_token['oauth_token']; +$_SESSION['oauth_token_secret'] = @$request_token['oauth_token_secret']; //print_r2($_SESSION); exit; diff --git a/plugin/sns/twitter/twitteroauth/twitteroauth.php b/plugin/sns/twitter/twitteroauth/twitteroauth.php index af8712229..49bee1457 100644 --- a/plugin/sns/twitter/twitteroauth/twitteroauth.php +++ b/plugin/sns/twitter/twitteroauth/twitteroauth.php @@ -77,7 +77,7 @@ class TwitterOAuth { $parameters['oauth_callback'] = $oauth_callback; $request = $this->oAuthRequest($this->requestTokenURL(), 'GET', $parameters); $token = OAuthUtil::parse_parameters($request); - $this->token = new OAuthConsumer($token['oauth_token'], $token['oauth_token_secret']); + $this->token = new OAuthConsumer(@$token['oauth_token'], @$token['oauth_token_secret']); return $token; }