]> git.mxchange.org Git - friendica.git/blobdiff - mod/register.php
Friendicaland
[friendica.git] / mod / register.php
index d52b5a6e10945cf296d14904c6e58b69b620d118..6bf287d4245b0c70ce12d3395b9f4ad216216d10 100644 (file)
@@ -12,7 +12,7 @@ function register_post(&$a) {
        call_hooks('register_post', $arr);
 
        $max_dailies = intval(get_config('system','max_daily_registrations'));
-       if($max_dailes) {
+       if($max_dailies) {
                $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
                if($r && $r[0]['total'] >= $max_dailies) {
                        return;
@@ -182,7 +182,7 @@ function register_content(&$a) {
        }
 
        $max_dailies = intval(get_config('system','max_daily_registrations'));
-       if($max_dailes) {
+       if($max_dailies) {
                $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
                if($r && $r[0]['total'] >= $max_dailies) {
                        logger('max daily registrations exceeded.');
@@ -193,6 +193,8 @@ function register_content(&$a) {
 
        if(x($_SESSION,'theme'))
                unset($_SESSION['theme']);
+       if(x($_SESSION,'mobile-theme'))
+               unset($_SESSION['mobile-theme']);
 
 
        $username     = ((x($_POST,'username'))     ? $_POST['username']     : ((x($_GET,'username'))     ? $_GET['username']              : ''));