summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index 4167356..4899c7e 100644
--- a/it_html.class
+++ b/it_html.class
@@ -449,7 +449,7 @@ function u(/* ... */)
*/
function js($args)
{
- if (($this->p['htmltype'] != 'html') && isset($args[0]))
+ if (($this->p['htmltype'] != 'html') && $args[0] && ((array)$args[0] === array_values((array)$args[0])))
{
array_unshift($args, "<!--//--><![CDATA[//><!--\n");
$args[] = "\n//--><!]]>";