From 0ada604c7db25c4d82f9a5e46a1c8a0caeeb563b Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Wed, 21 Nov 2018 09:37:13 +0100 Subject: [PATCH] Return default profile photo if no profile photo is set --- src/Module/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Photo.php b/src/Module/Photo.php index f65ca698b..5bc931dae 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; }