Changeset 198


Ignore:
Timestamp:
Jul 3, 2006 5:36:31 AM (18 years ago)
Author:
scdev
Message:

Q - Doh! I made a bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r195 r198  
    102102        $this->_ns = $namespace;
    103103       
    104         if (!isset($_SESSION['_auth_sql'][$this->_ns])) {
    105             $this->clear();
    106         }
    107 
    108104        // Initialize default parameters.
    109105        $this->setParam($this->_default_params);
     
    112108        if (!is_null($app->getParam('db_create_tables'))) {
    113109            $this->setParam(array('create_table' => $app->getParam('db_create_tables')));
     110        }
     111
     112        if (!isset($_SESSION['_auth_sql'][$this->_ns])) {
     113            $this->clear();
    114114        }
    115115    }
     
    260260        $this->initDB();
    261261
    262         if ($this->isLoggedIn()) {           
     262        if ($this->get('user_id', false)) {           
    263263            $db->query("
    264264                UPDATE " . $this->_params['db_table'] . " SET
Note: See TracChangeset for help on using the changeset viewer.