Fixes notice "PHP Notice: Undefined index: return_path"

This commit is contained in:
Michael 2018-11-13 18:10:37 +00:00
parent 320c986e05
commit e1875cf206

View 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()