mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 01:03:41 +00:00
Avoid a notice in twitter.php
This commit is contained in:
parent
cbb75b2329
commit
6bc8103ca2
1 changed files with 3 additions and 0 deletions
|
@ -1801,6 +1801,9 @@ function twitter_fetch_own_contact(App $a, $uid)
|
|||
// Fetching user data
|
||||
// get() may throw TwitterOAuthException, but we will catch it later
|
||||
$user = $connection->get('account/verify_credentials');
|
||||
if (empty($user) || empty($user->id_str)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
PConfig::set($uid, 'twitter', 'own_id', $user->id_str);
|
||||
|
||||
|
|
Loading…
Reference in a new issue