Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Torbenson <gregory.torbenson@ryansg.com>2018-06-27 10:16:10 -0400
committerGreg Torbenson <gregory.torbenson@ryansg.com>2018-06-27 14:03:38 -0400
commitfc60f98908239a7d430a10ed26ab7a0461608bb2 (patch)
tree68e7ddd91c216a9a73df9ea4bb5a5a1a17e3dcc0 /src
parent9333c66cadeb94a4169921e54dd051b030ad0bf5 (diff)
downloadtame-fc60f98908239a7d430a10ed26ab7a0461608bb2.tar.gz
tame-fc60f98908239a7d430a10ed26ab7a0461608bb2.tar.bz2
tame-fc60f98908239a7d430a10ed26ab7a0461608bb2.zip
Don't break interpolated comparison attributes when fixing static comparisons.v2.17.2
Diffstat (limited to 'src')
-rw-r--r--src/current/c1map/render.xsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/current/c1map/render.xsl b/src/current/c1map/render.xsl
index c81e143..2e8046c 100644
--- a/src/current/c1map/render.xsl
+++ b/src/current/c1map/render.xsl
@@ -360,9 +360,9 @@
<xsl:text>( ( </xsl:text>
<xsl:text>$contract->isTruthy( </xsl:text>
<xsl:apply-templates select="$cond/lvmp:when/lvmp:*" mode="lvmp:render" />
- <xsl:if test="$cond/lvmp:cmp/text() != ''">
+ <xsl:if test="$cond/lvmp:cmp/(*|text())">
<xsl:text>,</xsl:text>
- <xsl:apply-templates select="$cond/lvmp:cmp/text()" mode="lvmp:render" />
+ <xsl:apply-templates select="$cond/lvmp:cmp/(lvmp:*|text())" mode="lvmp:render" />
</xsl:if>
<xsl:text>)</xsl:text>
<xsl:text> ) ? </xsl:text>
@@ -380,9 +380,9 @@
<xsl:text>( ( </xsl:text>
<xsl:text>$contract->isTruthy( </xsl:text>
<xsl:apply-templates select="$cond/lvmp:when/lvmp:*" mode="lvmp:render" />
- <xsl:if test="$cond/lvmp:cmp/*">
+ <xsl:if test="$cond/lvmp:cmp/(*|text())">
<xsl:text>,</xsl:text>
- <xsl:apply-templates select="$cond/lvmp:cmp/lvmp:*" mode="lvmp:render" />
+ <xsl:apply-templates select="$cond/lvmp:cmp/(lvmp:*|text())" mode="lvmp:render" />
</xsl:if>
<xsl:text>)</xsl:text>
<xsl:text> ) ? array(</xsl:text>