From: Michael Date: Tue, 25 Apr 2023 18:38:18 +0000 (+0000) Subject: Improved result check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c3b4dea9671a706551178f82079d09878a4f221;p=friendica-addons.git Improved result check --- diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index 2efa70b3..2aa80f3b 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -1050,7 +1050,7 @@ function tumblr_get_token(int $uid, string $code = ''): string if (empty($refresh_token) && empty($code)) { $result = tumblr_exchange_token($uid); - if (empty($result)) { + if (empty($result->refresh_token)) { Logger::info('Invalid result while exchanging token', ['uid' => $uid]); return ''; }