改进View类的assign方法 去掉多余代码

This commit is contained in:
thinkphp
2016-09-14 17:30:16 +08:00
parent c38e235f03
commit 8974a5d120

View File

@@ -61,7 +61,6 @@ class View
{
if (is_array($name)) {
$this->data = array_merge($this->data, $name);
return $this;
} else {
$this->data[$name] = $value;
}