Explorar o código

show user stats in loginas view

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
b6caad717f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/list/stats/index.php

+ 1 - 1
web/list/stats/index.php

@@ -13,7 +13,7 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
 top_panel($user,$TAB);
 
 // Data
-if ($_SESSION['user'] == 'admin') {
+if ($user == 'admin') {
 
     if (empty($_GET['user'])) {
         exec (VESTA_CMD."v-list-users-stats json", $output, $return_var);