Procházet zdrojové kódy

Fix user type icon in top menu bar (#3810)

State was incorrectly detected leading it to always show as impersonating another user.
Kristan Kenney před 2 roky
rodič
revize
ec39ccfa85
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      web/templates/includes/panel.php

+ 1 - 1
web/templates/includes/panel.php

@@ -16,7 +16,7 @@
 				<!-- Usage Statistics -->
 				<div class="top-bar-usage">
 					<?php
-						if (isset($_SESSION['look'])) {
+						if ($_SESSION['look'] !== '') {
 							$user_icon = 'fa-binoculars';
 						} else if ($_SESSION['userContext'] === 'admin') {
 							$user_icon = 'fa-user-tie';