mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix multiple redirects error in browser
This commit is contained in:
parent
4a629b4418
commit
23047aa608
@ -12,7 +12,7 @@ $title = 'Login';
|
|||||||
|
|
||||||
require PAGES . 'account/login.php';
|
require PAGES . 'account/login.php';
|
||||||
if ($logged) {
|
if ($logged) {
|
||||||
header('Location: ' . ADMIN_URL);
|
header('Location: ' . (admin() ? ADMIN_URL : BASE_URL));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user