Ver código fonte

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

State was incorrectly detected leading it to always show as impersonating another user.
Kristan Kenney 2 anos atrás
pai
commit
ec39ccfa85
1 arquivos alterados com 1 adições e 1 exclusões
  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';