diff --git a/application/controllers/admin/authentication.php b/application/controllers/admin/authentication.php index 945a3d5d9c4..26d2163249a 100644 --- a/application/controllers/admin/authentication.php +++ b/application/controllers/admin/authentication.php @@ -113,9 +113,6 @@ public function index() */ public function logout() { - // Fetch the current user - $plugin = App()->user->getState('plugin', null); // Save for afterLogout, current user will be destroyed by then - /* Adding beforeLogout event */ $beforeLogout = new PluginEvent('beforeLogout'); App()->getPluginManager()->dispatchEvent($beforeLogout);