mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进case标签解析
This commit is contained in:
@@ -278,7 +278,7 @@ class Cx extends Taglib
|
||||
*/
|
||||
public function tagCase($tag, $content)
|
||||
{
|
||||
$value = !empty($tag['expression']) ? $tag['expression'] : $tag['value'];
|
||||
$value = isset($tag['expression']) ? $tag['expression'] : $tag['value'];
|
||||
$flag = substr($value, 0, 1);
|
||||
if ('$' == $flag || ':' == $flag) {
|
||||
$value = $this->autoBuildVar($value);
|
||||
|
||||
Reference in New Issue
Block a user