Skip to content

Commit 4de0761

Browse files
committed
Fixed users being able to add a profile image with no page name
1 parent 38d6d64 commit 4de0761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/studio/page.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66

77
<h2 class="mb-4"><i class="bi bi-file-earmark-break"> Page</i></h2>
88

9+
@foreach($pages as $page)
910
<form action="{{ route('editPage') }}" enctype="multipart/form-data" method="post">
1011
@csrf
12+
@if($page->littlelink_name != '')
1113
<div class="form-group col-lg-8">
1214
<label>Logo</label>
1315
<input type="file" class="form-control-file" name="image">
1416
</div>
15-
@foreach($pages as $page)
17+
@endif
1618

1719
<div class="form-group col-lg-8">
1820
@if(file_exists(base_path("img/$page->littlelink_name" . ".png" )))

0 commit comments

Comments
 (0)