Fixed an error when trying to logout in two tabs
This commit is contained in:
parent
4bd77f8dbf
commit
1dce04fa92
@ -26,6 +26,7 @@ class Guest extends Access {
|
||||
# Session functions
|
||||
case 'init': $this->init(); break;
|
||||
case 'login': $this->login(); break;
|
||||
case 'logout': $this->logout(); break;
|
||||
|
||||
# $_GET functions
|
||||
case 'getAlbumArchive': $this->getAlbumArchive(); break;
|
||||
@ -121,6 +122,13 @@ class Guest extends Access {
|
||||
|
||||
}
|
||||
|
||||
private function logout() {
|
||||
|
||||
$session = new Session($this->plugins, $this->settings);
|
||||
echo $session->logout();
|
||||
|
||||
}
|
||||
|
||||
# $_GET functions
|
||||
|
||||
private function getAlbumArchive() {
|
||||
|
Loading…
Reference in New Issue
Block a user