Fixes notice "PHP Notice: Undefined index: return_path"
This commit is contained in:
parent
320c986e05
commit
e1875cf206
|
@ -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 New Issue
Block a user