From 5f90f4794ed7bf7b6a5f2e922476000b63aa3554 Mon Sep 17 00:00:00 2001 From: Visman Date: Wed, 5 Sep 2018 14:49:38 +0700 Subject: [PATCH] Additional condition for displaying an avatar in the profile --- app/Models/Pages/Profile/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Pages/Profile/View.php b/app/Models/Pages/Profile/View.php index f1d0c0dc..120d729b 100644 --- a/app/Models/Pages/Profile/View.php +++ b/app/Models/Pages/Profile/View.php @@ -61,7 +61,7 @@ class View extends Profile $fields[] = [ 'type' => 'endwrap', ]; - if ($this->rules->useAvatar) { + if ($this->rules->useAvatar && $this->curUser->avatar) { $fields['avatar'] = [ 'type' => 'yield', 'caption' => \ForkBB\__('Avatar'),