Merge pull request #6126 from annando/notice-return-path
Fixes notice "PHP Notice: Undefined index: return_path"
This commit is contained in:
commit
e6557ca9c5
|
@ -46,7 +46,7 @@ class Login extends BaseModule
|
||||||
$a->internalRedirect();
|
$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()
|
public static function post()
|
||||||
|
|
Loading…
Reference in a new issue