Fixes notice "PHP Notice: Undefined index: return_path"
This commit is contained in:
parent
320c986e05
commit
e1875cf206
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue