check that g_user exists and not the g_theme

This commit is contained in:
sparkyx 2021-07-08 17:24:05 +02:00
parent d06f7a89d5
commit af2cd88fe1

View file

@ -34,6 +34,7 @@ require_once NOALYSS_INCLUDE.'/lib/html_input.class.php';
require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
require_once NOALYSS_INCLUDE.'/lib/icon_action.class.php';
$http=new HttpInput();
mb_internal_encoding("UTF-8");
// if gDossier is not set redirect to form to choose a folder
if ( ! isset($_REQUEST['gDossier']))
@ -41,7 +42,7 @@ if ( ! isset($_REQUEST['gDossier']))
redirect('user_login.php');
exit();
}
if ( ! isset ($_SESSION[SESSION_KEY.'g_theme']))
if ( ! isset ($_SESSION[SESSION_KEY.'g_user']))
{
echo "<h2>"._('Vous êtes déconnecté')."</h2>";
$backurl=$_SERVER['REQUEST_URI'];