Fix tree was remembered empty with anonymous

This commit is contained in:
Deon George 2009-07-12 22:03:05 +10:00
parent 6627c7bea4
commit 0171853f1d

View File

@ -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;