Skip to content

Commit

Permalink
修正视图过滤方法
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Aug 12, 2019
1 parent 8429844 commit 12d15c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/think/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ public function exists($name)
*/
public function filter($filter)
{
$this->filter = $filter;
if ($filter) {
$this->filter = $filter;
}

return $this;
}

Expand Down

0 comments on commit 12d15c2

Please sign in to comment.