소스 검색

fix for top panel

Serghey Rodin 11 년 전
부모
커밋
6c4a08cf1e
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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') {