From: fabrixxm Date: Wed, 21 Nov 2018 08:37:13 +0000 (+0100) Subject: Return default profile photo if no profile photo is set X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ada604c7db25c4d82f9a5e46a1c8a0caeeb563b;p=friendica.git Return default profile photo if no profile photo is set --- diff --git a/src/Module/Photo.php b/src/Module/Photo.php index f65ca698b0..5bc931dae6 100644 --- a/src/Module/Photo.php +++ b/src/Module/Photo.php @@ -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; }