Parcourir la source

fix for top panel

Serghey Rodin il y a 11 ans
Parent
commit
6c4a08cf1e
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      web/edit/user/index.php

+ 5 - 1
web/edit/user/index.php

@@ -156,7 +156,11 @@ if (!empty($_POST['save'])) {
 }
 
 // Panel
-top_panel($user,$TAB);
+if (!empty($_SESSION['look'])) {
+    top_panel($user,$TAB);
+} else {
+    top_panel($_SESSION['user'],$TAB);
+}
 
 // Display body
 if ($_SESSION['user'] == 'admin') {