Fix: Use null coalescing operator on user_id

This commit is contained in:
billz
2025-03-20 02:09:39 -07:00
parent 6adeab7586
commit 4e411aaa6b

View File

@@ -13,7 +13,7 @@
<!-- Auth user --> <!-- Auth user -->
<li class="nav-item mt-1"> <li class="nav-item mt-1">
<a class="nav-link" href="auth_conf"> <a class="nav-link" href="auth_conf">
<span class="mr-2 small nav-user"><?php echo htmlspecialchars($_SESSION['user_id'], ENT_QUOTES); ?></span> <span class="mr-2 small nav-user"><?php echo htmlspecialchars($_SESSION['user_id'] ?? '', ENT_QUOTES); ?></span>
<i class="fas fa-user-circle text-muted mt-2 fa-3x"></i> <i class="fas fa-user-circle text-muted mt-2 fa-3x"></i>
</a> </a>
</li> </li>