Skip to content

Commit

Permalink
Added backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed May 19, 2019
1 parent 72c6bdf commit 1ea053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s9e/catastrophiccolumns/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function ($m) use (&$colNames, $tagName)
$colName = 'r:' . $tagName . '-' . $m[1];
$colNames[] = $colName;

return '<xsl:apply-templates select="' . $colName . '"/>';
return '<xsl:choose><xsl:when test="' . $colName . '"><xsl:apply-templates select="' . $colName . '"/></xsl:when><xsl:otherwise>' . $m[0] . '</xsl:otherwise></xsl:choose>';
},
$tag->template
);
Expand Down

0 comments on commit 1ea053f

Please sign in to comment.