diff --git a/library/think/View.php b/library/think/View.php index 52aa9cd7..6edd69a0 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -51,7 +51,7 @@ class View '__CSS__' => $root . '/static/css', '__JS__' => $root . '/static/js', ]; - $this->replace = array_merge($baseReplace, $replace); + $this->replace = array_merge($baseReplace, (array) $replace); } /**