Changeset 3555 in subversion


Ignore:
Timestamp:
Apr 23, 2010 8:25:44 AM (3 years ago)
Author:
alec
Message:
  • Skip session initialization/configuration if session is initialized already (e.g. using Installer)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcmail.php

    r3466 r3555  
    351351 
    352352    // set keep-alive/check-recent interval 
    353     if ($keep_alive = $this->session->get_keep_alive()) { 
     353    if ($this->session && ($keep_alive = $this->session->get_keep_alive())) { 
    354354      $this->output->set_env('keep_alive', $keep_alive); 
    355355    } 
     
    482482  public function session_init() 
    483483  { 
     484    // session started (Installer?) 
     485    if (session_id()) 
     486      return; 
     487 
    484488    $lifetime = $this->config->get('session_lifetime', 0) * 60; 
    485489 
     
    523527  public function session_configure() 
    524528  { 
     529    if (!$this->session) 
     530      return; 
     531 
    525532    $lifetime = $this->config->get('session_lifetime', 0) * 60; 
    526533 
     
    981988 
    982989      $log = $this->task . ($this->action ? '/'.$this->action : '') . ($mem ? " [$mem]" : ''); 
    983       rcube_print_time(RCMAIL_START, $log); 
     990      if (defined('RCMAIL_START')) 
     991        rcube_print_time(RCMAIL_START, $log); 
     992      else 
     993        console($log); 
    984994    } 
    985995  } 
Note: See TracChangeset for help on using the changeset viewer.