From 45da5ae33ef7ae223f138e7dfc9b2bc8acfff664 Mon Sep 17 00:00:00 2001 From: U2FsdGVkX1 Date: Mon, 12 Dec 2016 15:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPHP7.1.0=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/function/common.function.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/function/common.function.php b/lib/function/common.function.php index 205f7d4..2cad4c7 100755 --- a/lib/function/common.function.php +++ b/lib/function/common.function.php @@ -359,7 +359,7 @@ function show_json($data,$code = true,$info=''){ * $tpl="
  • {1}_{2}
  • \n"; * echo getTplList('|','=',$arr,$tpl,'mac'),'
    '; */ -function getTplList($cute1, $cute2, $arraylist, $tpl,$this,$this_str=''){ +function getTplList($cute1, $cute2, $arraylist, $tpl,$this_tag,$this_str=''){ $list = explode($cute1, $arraylist); if ($this_str == '') $this_str ="this"; $html = ''; @@ -369,7 +369,7 @@ function getTplList($cute1, $cute2, $arraylist, $tpl,$this,$this_str=''){ foreach ($info as $key => $value) { $arr_replace[$key]='{'.$key .'}'; } - if ($info[0] == $this) { + if ($info[0] == $this_tag) { $temp = str_replace($arr_replace, $info, $tpl); $temp = str_replace('{this}', $this_str, $temp); } else {