]> git.mxchange.org Git - friendica.git/commitdiff
Fixes notice "PHP Notice: Undefined index: return_path"
authorMichael <heluecht@pirati.ca>
Tue, 13 Nov 2018 18:10:37 +0000 (18:10 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 13 Nov 2018 18:10:37 +0000 (18:10 +0000)
src/Module/Login.php

index 0cc65c3c32846b2b44cac98a67b849e63c3c6445..330988df50cc1b94ec8fb5314b38ae6715ce4e71 100644 (file)
@@ -46,7 +46,7 @@ class Login extends BaseModule
                        $a->internalRedirect();
                }
 
-               return self::form($_SESSION['return_path'], intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
+               return self::form(defaults($_SESSION, 'return_path', null), intval(Config::get('config', 'register_policy')) !== REGISTER_CLOSED);
        }
 
        public static function post()