From 9ea7f48e1a63f9411ee788c8fbfc833989e96dcb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 17 Apr 2017 08:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Query=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 2cfbda99..55b70941 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1999,7 +1999,7 @@ class Query $relation = explode(',', $relation); } if (isset($this->options['relation'])) { - $this->options['relation'] = array_mrege($this->options['relation'], $relation); + $this->options['relation'] = array_merge($this->options['relation'], $relation); } else { $this->options['relation'] = $relation; }