diff options
author | Christian Weber | 2011-12-20 10:30:20 +0000 |
---|---|---|
committer | Christian Weber | 2011-12-20 10:30:20 +0000 |
commit | 02e564341b6ddc098e21b8ab733d49335e804ad7 (patch) | |
tree | 489e276b4eab06f10d91e9d2c1dc6d2138aef463 | |
parent | c626e16bc3e7cc669cb919acf90ce6cc8df530a8 (diff) | |
download | itools-02e564341b6ddc098e21b8ab733d49335e804ad7.tar.gz itools-02e564341b6ddc098e21b8ab733d49335e804ad7.tar.bz2 itools-02e564341b6ddc098e21b8ab733d49335e804ad7.zip |
allow empty jsenv arrays to avoid js-side checking
-rw-r--r-- | it_html.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class index 2bfc22d..5bbd038 100644 --- a/it_html.class +++ b/it_html.class @@ -179,7 +179,7 @@ function head($args = array()) else if (!headers_sent()) # prevent warnings when ED() in use header("Content-Type: " . $p['content-type']); - $js = $p['jsenv'] ? "var env = " . itjs::serialize($p['jsenv']) . ";\n" : ''; + $js = isset($p['jsenv']) ? "var env = " . itjs::serialize($p['jsenv']) . ";\n" : ''; if ($GLOBALS['it_html']->p['charset'] == "iso-8859-1") $js = it_html::latinize($js); |