mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进
This commit is contained in:
@@ -785,6 +785,8 @@ class Template
|
|||||||
if (isset($array[1])) {
|
if (isset($array[1])) {
|
||||||
$this->parseVar($array[2]);
|
$this->parseVar($array[2]);
|
||||||
$name = $name . $array[1] . $array[2];
|
$name = $name . $array[1] . $array[2];
|
||||||
|
} else {
|
||||||
|
$name = '!empty(' . $name . ')';
|
||||||
}
|
}
|
||||||
$str = '<?php echo ' . $name . '?' . $str . '; ?>';
|
$str = '<?php echo ' . $name . '?' . $str . '; ?>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user