diff --git a/application/controllers/admin/authentication.php b/application/controllers/admin/authentication.php index 14140bb7066..3d3103bef3b 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);