X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Flogin.php;h=58af42d7445321f72e60c3164fbedb0671e1d7b6;hb=3ad7c395fb9a33319531e04673563e7c9983d8f0;hp=296890a5b21a03c49e91eaddf40e67142945112c;hpb=6348e70daa113e8b3203de8fbc919d08c90d972e;p=friendica.git diff --git a/mod/login.php b/mod/login.php index 296890a5b2..58af42d744 100644 --- a/mod/login.php +++ b/mod/login.php @@ -1,8 +1,8 @@ config['register_enabled']); - return login(1); + if(x($_SESSION,'theme')) + unset($_SESSION['theme']); + return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true); + } \ No newline at end of file