Fixed Error QUERY_STRING on sign in
Added default value for QUERY_STRING.pull/825/head
parent
7f5e698752
commit
0c91d27a70
|
@ -55,7 +55,11 @@ class LoginController extends AbstractController {
|
|||
|
||||
if ($result) {
|
||||
// success login, redirect
|
||||
header('Location: '.psm_build_url($_SERVER['QUERY_STRING']));
|
||||
header('Location: '.
|
||||
psm_build_url(
|
||||
empty($_SERVER["QUERY_STRING"]) ? null : $_SERVER["QUERY_STRING"]
|
||||
)
|
||||
);
|
||||
die();
|
||||
} else {
|
||||
$this->addMessage(psm_get_lang('login', 'error_login_incorrect'), 'error');
|
||||
|
|
Loading…
Reference in New Issue