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
|
* If this returns '', we are logged in with anonymous
|
||||||
*/
|
*/
|
||||||
public function getLogin($method=null) {
|
public function getLogin($method=null) {
|
||||||
$method = $this->getMethod($method);
|
|
||||||
|
|
||||||
if ($method == 'anon')
|
if ($method == 'anon')
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
$method = $this->getMethod($method);
|
||||||
|
|
||||||
switch ($this->getAuthType()) {
|
switch ($this->getAuthType()) {
|
||||||
case 'config':
|
case 'config':
|
||||||
if (! isset($_SESSION['USER'][$this->index][$method]['name']))
|
if (! isset($_SESSION['USER'][$this->index][$method]['name']))
|
||||||
@ -313,6 +313,8 @@ abstract class DS {
|
|||||||
public function logout($method=null) {
|
public function logout($method=null) {
|
||||||
$method = $this->getMethod($method);
|
$method = $this->getMethod($method);
|
||||||
|
|
||||||
|
unset ($_SESSION['cache'][$this->index]);
|
||||||
|
|
||||||
switch ($this->getAuthType()) {
|
switch ($this->getAuthType()) {
|
||||||
case 'config':
|
case 'config':
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user