diff options
author | Aleksander Machniak <alec@alec.pl> | 2020-10-11 12:04:03 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2020-10-11 12:04:03 +0300 |
commit | 5fb7345331f33a13c15e123b821cfd362dffd762 (patch) | |
tree | a11a97adca2a83300a5108f60b90c789eb7d5f05 /program/include/rcmail.php | |
parent | 4a34d6160660023ff6e9b4fbe57e07c7d602ea8a (diff) |
Fix regression
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r-- | program/include/rcmail.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 0acbcf119..0945a9b5c 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -113,9 +113,7 @@ class rcmail extends rcube $this->default_skin = $this->config->get('skin'); // create user object - if (!empty($_SESSION['user_id'])) { - $this->set_user(new rcube_user($_SESSION['user_id'])); - } + $this->set_user(new rcube_user(isset($_SESSION['user_id']) ? $_SESSION['user_id'] : null)); // set task and action properties $this->set_task(rcube_utils::get_input_value('_task', rcube_utils::INPUT_GPC)); |