Ignore:
Timestamp:
Apr 5, 2007 12:16:27 AM (17 years ago)
Author:
quinn
Message:

Fixed some warnings in Prefs.
Fixed boomerang=\w+ removal code.
Added feature to disable trans_sess_id.

This will be the last changes of final version 2.1

File:
1 edited

Legend:

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

    r241 r242  
    203203    {
    204204        $app =& App::getInstance();
    205         if (array_key_exists($key, $_SESSION['_prefs'][$this->_ns]['persistent'])) {
     205        if (isset($_SESSION['_prefs'][$this->_ns]['persistent']) && array_key_exists($key, $_SESSION['_prefs'][$this->_ns]['persistent'])) {
    206206            $app->logMsg(sprintf('Found %s in persistent', $key), LOG_DEBUG, __FILE__, __LINE__);
    207207            return $_SESSION['_prefs'][$this->_ns]['persistent'][$key];
    208         } else if (array_key_exists($key, $_SESSION['_prefs'][$this->_ns]['defaults'])) {
     208        } else if (isset($_SESSION['_prefs'][$this->_ns]['defaults']) && array_key_exists($key, $_SESSION['_prefs'][$this->_ns]['defaults'])) {
    209209            $app->logMsg(sprintf('Found %s in defaults', $key), LOG_DEBUG, __FILE__, __LINE__);
    210210            return $_SESSION['_prefs'][$this->_ns]['defaults'][$key];
Note: See TracChangeset for help on using the changeset viewer.