diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-10-25 16:45:33 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-10-25 16:45:33 +0200 |
commit | 71dbeeee10d0e3efcda95b8bbe7a2e4156e0f7fe (patch) | |
tree | 11e5073a90a0143c500b18150323efc007512524 /program/include | |
parent | 2979df5529f987e548d9f970d6e7731f3affa965 (diff) |
Skip unnecessary session updates on task switch - switch session task less often (#1490116)
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcmail.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 221b50afe..8ea42b600 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -106,14 +106,14 @@ class rcmail extends rcube // reset some session parameters when changing task if ($this->task != 'utils') { // we reset list page when switching to another task - // but only to the main task interface - empty action (#1489076) + // but only to the main task interface - empty action (#1489076, #1490116) // this will prevent from unintentional page reset on cross-task requests if ($this->session && $_SESSION['task'] != $this->task && empty($this->action)) { $this->session->remove('page'); - } - // set current task to session - $_SESSION['task'] = $this->task; + // set current task to session + $_SESSION['task'] = $this->task; + } } // init output class (not in CLI mode) |