summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-07-09 10:55:25 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-07-20 14:00:58 +0200
commit007f1b443888a17b5156ef871e5548d28a3a0130 (patch)
tree1573a1faa9ffb1e8dc0ee06a1dacf08034d2e0a4 /index.php
parent29723da95bbf59b869a1cf78d53a55c621049f57 (diff)
Warn for unsent/unsaved message when closing compose window; remove localStorage copy if page was left intentionally but not on session errors (#1489818)
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 476350162..a1e957d99 100644
--- a/index.php
+++ b/index.php
@@ -211,7 +211,7 @@ if (empty($RCMAIL->user->ID)) {
$OUTPUT->show_message('sessionerror', 'error', null, true, -1);
}
- if ($OUTPUT->ajax_call || !empty($_REQUEST['_framed'])) {
+ if ($OUTPUT->ajax_call || $OUTPUT->get_env('framed')) {
$OUTPUT->command('session_error', $RCMAIL->url(array('_err' => 'session')));
$OUTPUT->send('iframe');
}