diff --git a/core/FrontController.php b/core/FrontController.php
index bb1d69308f450b3f10a17bbb1dd2d4dcdde8a1a0..a077820e5cfb5de4aa84b8b1ef0e12144838efba 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -471,7 +471,7 @@ class FrontController extends Singleton
             $isAllWebsitesReferer = !empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'module=MultiSites&action=index') !== false;
 
             if ($isDashboardReferer
-                && !empty($POST['token_auth'])
+                && !empty($_POST['token_auth'])
                 && Common::getRequestVar('widget', 0, 'int') === 1) {
                 Session::close();
             }