]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Photo.php
Return default profile photo if no profile photo is set
[friendica.git] / src / Module / Photo.php
index f65ca698b0836f14d6a3549669299a5266311ed1..5bc931dae61f0bd5825ab3376d8de2a10ceed510 100644 (file)
@@ -150,7 +150,7 @@ class Photo extends BaseModule
 
                $photo = MPhoto::selectFirst([], ["scale" => $scale, "uid" => $uid, "profile" => 1]);
                if ($photo===false) {
-                       // todo default image info
+                       $photo = MPhoto::createPhotoForSystemResource($default);
                }
                return $photo;
        }