]> git.mxchange.org Git - friendica-addons.git/blobdiff - twitter/twitter.php
Bugfix: Sometimes it happened that the own contact data was deleted. This was caused...
[friendica-addons.git] / twitter / twitter.php
index 1919e28cf536293bcaad3c7d41cdf2e0933bea1c..2669c46d3e79919a1eb61e141e4e51e7cc47a26b 100644 (file)
@@ -892,6 +892,9 @@ function twitter_queue_hook(&$a,&$b) {
 function twitter_fetch_contact($uid, $contact, $create_user) {
        require_once("include/Photo.php");
 
+       if ($contact->id_str == "")
+               return(-1);
+
        $avatar = str_replace("_normal.", ".", $contact->profile_image_url_https);
 
        $info = get_photo_info($avatar);