Fixes border case of empty profile fields

main
Yasen Pramatarov 2025-04-09 09:17:17 +03:00
parent f27f3fe62f
commit 9d3bb9ef04
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@
<label for="name" class="form-label"><small>name:</small></label> <label for="name" class="form-label"><small>name:</small></label>
</div> </div>
<div class="col-md-8 text-start bg-light"> <div class="col-md-8 text-start bg-light">
<input class="form-control" type="text" name="name" value="<?= htmlspecialchars($userDetails[0]['name']) ?>" autofocus /> <input class="form-control" type="text" name="name" value="<?= htmlspecialchars($userDetails[0]['name'] ?? '') ?>" autofocus />
</div> </div>
</div> </div>
@ -54,7 +54,7 @@
<label for="email" class="form-label"><small>email:</small></label> <label for="email" class="form-label"><small>email:</small></label>
</div> </div>
<div class="col-md-8 text-start bg-light"> <div class="col-md-8 text-start bg-light">
<input class="form-control" type="text" name="email" value="<?= htmlspecialchars($userDetails[0]['email']) ?>" /> <input class="form-control" type="text" name="email" value="<?= htmlspecialchars($userDetails[0]['email'] ?? '') ?>" />
</div> </div>
</div> </div>