From 4c3b4dea9671a706551178f82079d09878a4f221 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 25 Apr 2023 18:38:18 +0000 Subject: [PATCH] Improved result check --- tumblr/tumblr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ''; } -- 2.39.5