修正模板比较标签,value值为变量时的不能正确判断的问题

This commit is contained in:
小陈叔叔
2016-01-09 13:59:10 +08:00
parent 77c37ef537
commit 5044194e93

View File

@@ -319,7 +319,7 @@ class Cx extends Taglib
$name = $this->autoBuildVar($name);
$flag = substr($value, 0, 1);
if ('$' == $flag || ':' == $flag) {
$value = $this->autoBuildVar($value);
$value = '(' . $this->autoBuildVar($value) . ')';
} else {
$value = '\'' . $value . '\'';
}