X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flogin.php;h=d09fc1868f55adb2525f734666abeae77c22be38;hb=fb72871f6601078fc9cc40989a7d03339e44779e;hp=ba232a9432973dd2b2a52b141cb7a068f64d2a4c;hpb=5ca174ae34edb598e30546e67165b8a2ad77ed59;p=friendica.git diff --git a/mod/login.php b/mod/login.php index ba232a9432..d09fc1868f 100644 --- a/mod/login.php +++ b/mod/login.php @@ -1,8 +1,13 @@ config['register_enabled']); + if(x($_SESSION,'theme')) + unset($_SESSION['theme']); + if(x($_SESSION,'mobile-theme')) + unset($_SESSION['mobile-theme']); + + if(local_user()) + goaway(z_root()); return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true); -} \ No newline at end of file + +}