From: Michael Date: Tue, 13 Nov 2018 18:10:37 +0000 (+0000) Subject: Fixes notice "PHP Notice: Undefined index: return_path" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1875cf206039875bb10ff1467b40368e623ccb7;p=friendica.git Fixes notice "PHP Notice: Undefined index: return_path" --- diff --git a/src/Module/Login.php b/src/Module/Login.php index 0cc65c3c32..330988df50 100644 --- a/src/Module/Login.php +++ b/src/Module/Login.php @@ -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()