thomascube
2011-04-20 49dac95d7d33f7b640e99db8d0ac4a108a10edb0
Don't add env variable when template is empty (e.g. on error page)

1 files modified
3 ■■■■ changed files
program/include/rcube_template.php 3 ●●●● patch | view | raw | blame | history
program/include/rcube_template.php
@@ -342,7 +342,8 @@
            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" : '';