X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=00c424c64c95389fa3f487ebae758c91a6f9d011;hb=2abbd1dc19680fcfc00c841b6a73a97a297055b9;hp=8e4eb84bdba8cc6e0f6b1445edf12bd7b3946678;hpb=290da6c845294d3bf02b581c500d5083d9f4dd72;p=friendica.git diff --git a/include/Photo.php b/include/Photo.php index 8e4eb84bdb..00c424c64c 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -663,7 +663,7 @@ function import_profile_photo($photo,$uid,$cid) { intval($uid), intval($cid) ); - if(count($r)) { + if(count($r) && strlen($r[0]['resource-id'])) { $hash = $r[0]['resource-id']; } else {