From d1a99bb02c1ca8ec1a70396e8a06db0880b66540 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 12 Sep 2017 10:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84getCac?= =?UTF-8?q?heKey=E6=96=B9=E6=B3=95?= 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 108d12cc..e03ad8a7 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2399,7 +2399,7 @@ class Query { if (is_scalar($value)) { $data = $value; - } elseif (is_array($value) && 'eq' == strtolower($value[0])) { + } elseif (is_array($value) && is_string($value[0]) && 'eq' == strtolower($value[0])) { $data = $value[1]; } if (isset($data)) {