Explorar o código

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

State was incorrectly detected leading it to always show as impersonating another user.
Kristan Kenney %!s(int64=2) %!d(string=hai) anos
pai
achega
ec39ccfa85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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';