Skip to content

Commit

Permalink
改进View类的assign方法 去掉多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Sep 14, 2016
1 parent c38e235 commit 8974a5d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/think/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public function assign($name, $value = '')
{
if (is_array($name)) {
$this->data = array_merge($this->data, $name);
return $this;
} else {
$this->data[$name] = $value;
}
Expand Down

0 comments on commit 8974a5d

Please sign in to comment.