Fixed an error when trying to logout in two tabs
This commit is contained in:
parent
4bd77f8dbf
commit
1dce04fa92
@ -16,7 +16,7 @@ class Guest extends Access {
|
|||||||
switch ($fn) {
|
switch ($fn) {
|
||||||
|
|
||||||
# Album functions
|
# Album functions
|
||||||
case 'getAlbums': $this->getAlbums(); break;
|
case 'getAlbums': $this->getAlbums(); break;
|
||||||
case 'getAlbum': $this->getAlbum(); break;
|
case 'getAlbum': $this->getAlbum(); break;
|
||||||
case 'checkAlbumAccess': $this->checkAlbumAccess(); break;
|
case 'checkAlbumAccess': $this->checkAlbumAccess(); break;
|
||||||
|
|
||||||
@ -25,7 +25,8 @@ class Guest extends Access {
|
|||||||
|
|
||||||
# Session functions
|
# Session functions
|
||||||
case 'init': $this->init(); break;
|
case 'init': $this->init(); break;
|
||||||
case 'login': $this->login(); break;
|
case 'login': $this->login(); break;
|
||||||
|
case 'logout': $this->logout(); break;
|
||||||
|
|
||||||
# $_GET functions
|
# $_GET functions
|
||||||
case 'getAlbumArchive': $this->getAlbumArchive(); break;
|
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
|
# $_GET functions
|
||||||
|
|
||||||
private function getAlbumArchive() {
|
private function getAlbumArchive() {
|
||||||
|
Loading…
Reference in New Issue
Block a user