Fixed an error when trying to logout in two tabs

This commit is contained in:
Tobias Reich 2014-06-14 21:44:08 +02:00
parent 4bd77f8dbf
commit 1dce04fa92

View File

@ -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() {