mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 06:03:44 +00:00
Improved result check
This commit is contained in:
parent
c811f54958
commit
4c3b4dea96
1 changed files with 1 additions and 1 deletions
|
@ -1050,7 +1050,7 @@ function tumblr_get_token(int $uid, string $code = ''): string
|
||||||
|
|
||||||
if (empty($refresh_token) && empty($code)) {
|
if (empty($refresh_token) && empty($code)) {
|
||||||
$result = tumblr_exchange_token($uid);
|
$result = tumblr_exchange_token($uid);
|
||||||
if (empty($result)) {
|
if (empty($result->refresh_token)) {
|
||||||
Logger::info('Invalid result while exchanging token', ['uid' => $uid]);
|
Logger::info('Invalid result while exchanging token', ['uid' => $uid]);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue