summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-10-03 15:36:09 +0000
committerChristian Schneider2007-10-03 15:36:09 +0000
commitb767fe0a6b131722b6b73873f5723a2a2e255b1f (patch)
tree4363f0d463b9ce974a2c1a3a447bb4c6397dcb57
parentb1082685aa8b8ab6e2e7497a4af57d2fdb73b780 (diff)
downloaditools-b767fe0a6b131722b6b73873f5723a2a2e255b1f.tar.gz
itools-b767fe0a6b131722b6b73873f5723a2a2e255b1f.tar.bz2
itools-b767fe0a6b131722b6b73873f5723a2a2e255b1f.zip
Improve detection if js() has content and needs XML comment
-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//--><!]]>";