]> git.mxchange.org Git - friendica.git/commitdiff
Return default profile photo if no profile photo is set
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 21 Nov 2018 08:37:13 +0000 (09:37 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 13:57:29 +0000 (08:57 -0500)
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;
        }