summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_template.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-20 08:48:29 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-20 08:48:29 +0000
commit9a45e76e955feaf84113646615303d800fe0917c (patch)
tree83e5f8a5e2bc4c62cfbb6bfbf829860f43f81f09 /roundcubemail/program/include/rcube_template.php
parent841d9b7fec603b03d003fba3ca73f6da5b5e1829 (diff)
Don't add env variable when template is empty (e.g. on error page)
git-svn-id: https://svn.roundcube.net/trunk@4672 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_template.php')
-rwxr-xr-xroundcubemail/program/include/rcube_template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index 0a64d1cb1..fdfa15cec 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/program/include/rcube_template.php
@@ -342,7 +342,8 @@ class rcube_template extends rcube_html_page
array_unshift($this->js_commands, array('hide_message', $unlock));
}
- $this->set_env('request_token', $this->app->get_request_token());
+ if (!empty($this->script_files))
+ $this->set_env('request_token', $this->app->get_request_token());
// write all env variables to client
$js = $this->framed ? "if(window.parent) {\n" : '';