Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2020-10-11 12:04:03 +0300
committerAleksander Machniak <alec@alec.pl>2020-10-11 12:04:03 +0300
commit5fb7345331f33a13c15e123b821cfd362dffd762 (patch)
treea11a97adca2a83300a5108f60b90c789eb7d5f05 /program/include/rcmail.php
parent4a34d6160660023ff6e9b4fbe57e07c7d602ea8a (diff)
Fix regression
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php4
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));