]> git.mxchange.org Git - friendica-addons.git/commitdiff
Improved result check
authorMichael <heluecht@pirati.ca>
Tue, 25 Apr 2023 18:38:18 +0000 (18:38 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 25 Apr 2023 18:38:18 +0000 (18:38 +0000)
tumblr/tumblr.php

index 2efa70b3aac552189991099bb7a37c8ce7374734..2aa80f3b4e81cab86dccd8c9c75a478bf05e6c2e 100644 (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 '';
                }