]> git.mxchange.org Git - friendica.git/blobdiff - include/Photo.php
permissions selector showing up for guests, testbubble and smoothly
[friendica.git] / include / Photo.php
index 8e4eb84bdba8cc6e0f6b1445edf12bd7b3946678..00c424c64c95389fa3f487ebae758c91a6f9d011 100644 (file)
@@ -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 {