Fix tree was remembered empty with anonymous
This commit is contained in:
parent
6627c7bea4
commit
0171853f1d
@ -144,11 +144,11 @@ abstract class DS {
|
||||
* If this returns '', we are logged in with anonymous
|
||||
*/
|
||||
public function getLogin($method=null) {
|
||||
$method = $this->getMethod($method);
|
||||
|
||||
if ($method == 'anon')
|
||||
return '';
|
||||
|
||||
$method = $this->getMethod($method);
|
||||
|
||||
switch ($this->getAuthType()) {
|
||||
case 'config':
|
||||
if (! isset($_SESSION['USER'][$this->index][$method]['name']))
|
||||
@ -313,6 +313,8 @@ abstract class DS {
|
||||
public function logout($method=null) {
|
||||
$method = $this->getMethod($method);
|
||||
|
||||
unset ($_SESSION['cache'][$this->index]);
|
||||
|
||||
switch ($this->getAuthType()) {
|
||||
case 'config':
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user