diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-01 19:04:34 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-01 19:04:34 +0000 |
| commit | 9db8e2d524cc25b445f02848e4963e9cb62ed32d (patch) | |
| tree | 96850c4425d97f89fe1bd39c3882d9ac304ca013 /roundcubemail/program/include/main.inc | |
| parent | ff1dc41c6108ebf975d6a6996680b6560abf506d (diff) | |
- Improve performance by avoiding unnecessary updates to the session table (#1486325)
git-svn-id: https://svn.roundcube.net/trunk@3296 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/main.inc')
| -rw-r--r-- | roundcubemail/program/include/main.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 207614885..9cf6dd00c 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -1487,12 +1487,20 @@ function rcube_https_check($port=null, $use_https=true) return true; if ($port && $_SERVER['SERVER_PORT'] == $port) return true; - if ($use_https && $RCMAIL->config->get('use_https')) + if ($use_https && isset($RCMAIL) && $RCMAIL->config->get('use_https')) return true; return false; } +// for backward compatibility +function rcube_sess_unset($var_name=null) +{ + global $RCMAIL; + + $RCMAIL->session->remove($var_name); +} + /** * E-mail address validation |
