修正cx标签库

This commit is contained in:
thinkphp
2016-01-05 09:30:54 +08:00
parent 7bafa20f73
commit 4b389c10ed

View File

@@ -11,7 +11,7 @@
namespace think\template\taglib; namespace think\template\taglib;
use think\template\Taglib; use think\template\TagLib;
/** /**
* CX标签库解析类 * CX标签库解析类
@@ -149,7 +149,7 @@ class Cx extends Taglib
} }
$parseStr .= 'if(is_array(' . $name . ')): '; $parseStr .= 'if(is_array(' . $name . ')): ';
// 设置了输出数组长度 // 设置了输出数组长度
if ($offset != 0 || $length != 'null') { if (0 != $offset || 'null' != $length) {
if (!isset($var)) { if (!isset($var)) {
$var = '$_' . uniqid(); $var = '$_' . uniqid();
} }