thomascube
2011-03-10 4591de7018414267311b421ef42ef1b4a2f6aa89
program/include/rcmail.php
@@ -874,6 +874,10 @@
    $nr = is_numeric($attrib['nr']) ? $attrib['nr'] : 1;
    $name = $attrib['name'] ? $attrib['name'] : '';
    // attrib contain text values: use them from now
    if (($setval = $attrib[strtolower($_SESSION['language'])]) || ($setval = $attrib['en_us']))
        $this->texts[$name] = $setval;
    // check for text with domain
    if ($domain && ($text_item = $this->texts[$domain.'.'.$name]))
@@ -1074,8 +1078,10 @@
      $this->imap->close();
    // before closing the database connection, write session data
    if ($_SERVER['REMOTE_ADDR'])
    if ($_SERVER['REMOTE_ADDR']) {
      $this->session->cleanup();
      session_write_close();
    }
    // write performance stats to logs/console
    if ($this->config->get('devel_mode')) {