diff options
Diffstat (limited to 'modules/logout.inc.php')
-rw-r--r-- | modules/logout.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/logout.inc.php b/modules/logout.inc.php index 1f22fb4..f1379d6 100644 --- a/modules/logout.inc.php +++ b/modules/logout.inc.php @@ -5,8 +5,10 @@ class Page_Logout extends Page public function doPreprocess() { - if (Request::any('noredirect') === false) { - User::load(); + if (!User::load()) { + Util::redirect('?do=Main'); + } + if (User::isLocalOnly()) { User::logout(); } } |