Browse Source

Return default profile photo if no profile photo is set

pull/6482/head
fabrixxm 2 years ago
committed by Hypolite Petovan
parent
commit
0ada604c7d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Module/Photo.php

+ 1
- 1
src/Module/Photo.php View 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;
}


Loading…
Cancel
Save