From 0e68b8e9f2e67bae407a43425aa6895f6bab4b40 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 3 Apr 2023 23:06:09 -0700 Subject: [PATCH] Small fixes for profile edits Signed-off-by: snipe --- resources/views/account/profile.blade.php | 3 +-- resources/views/partials/forms/edit/image-upload.blade.php | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/account/profile.blade.php b/resources/views/account/profile.blade.php index 887624c85f..2c3158c88f 100755 --- a/resources/views/account/profile.blade.php +++ b/resources/views/account/profile.blade.php @@ -123,8 +123,7 @@ @endif - @include ('partials.forms.edit.image-upload', ['fieldname' => 'avatar']) - + @include ('partials.forms.edit.image-upload', ['fieldname' => 'avatar', 'image_path' => app('users_upload_path')]) diff --git a/resources/views/partials/forms/edit/image-upload.blade.php b/resources/views/partials/forms/edit/image-upload.blade.php index fde6af69ee..577f90eaac 100644 --- a/resources/views/partials/forms/edit/image-upload.blade.php +++ b/resources/views/partials/forms/edit/image-upload.blade.php @@ -1,5 +1,6 @@ - -@if (($item->image) && ($item->image!='')) + + +@if (isset($item) && ($item->image) && ($item->image!=''))
@endif + +