Improved result check

This commit is contained in:
Michael 2023-04-25 18:38:18 +00:00
parent c811f54958
commit 4c3b4dea96
1 changed files with 1 additions and 1 deletions

View File

@ -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 '';
}