From 02e564341b6ddc098e21b8ab733d49335e804ad7 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Tue, 20 Dec 2011 10:30:20 +0000 Subject: allow empty jsenv arrays to avoid js-side checking --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3