Additional condition for displaying an avatar in the profile
This commit is contained in:
parent
321ea884eb
commit
5f90f4794e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class View extends Profile
|
||||||
$fields[] = [
|
$fields[] = [
|
||||||
'type' => 'endwrap',
|
'type' => 'endwrap',
|
||||||
];
|
];
|
||||||
if ($this->rules->useAvatar) {
|
if ($this->rules->useAvatar && $this->curUser->avatar) {
|
||||||
$fields['avatar'] = [
|
$fields['avatar'] = [
|
||||||
'type' => 'yield',
|
'type' => 'yield',
|
||||||
'caption' => \ForkBB\__('Avatar'),
|
'caption' => \ForkBB\__('Avatar'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue