https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb75b2
)
Avoid a notice in twitter.php
author
Michael
<heluecht@pirati.ca>
Sat, 27 Oct 2018 12:40:59 +0000
(12:40 +0000)
committer
Michael
<heluecht@pirati.ca>
Sat, 27 Oct 2018 12:40:59 +0000
(12:40 +0000)
twitter/twitter.php
patch
|
blob
|
history
diff --git
a/twitter/twitter.php
b/twitter/twitter.php
index
d3440d5
..
f60625e
100644
(file)
--- a/
twitter/twitter.php
+++ b/
twitter/twitter.php
@@
-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);