From 90509516dd29a992dd7d5289c5d70b662f71c705 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Mon, 13 Mar 2023 02:44:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Json::decode=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=B9=88=EC=A4=84=EC=9D=80=20array=EC=A1=B0=EC=B0=A8=20?= =?UTF-8?q?=EC=95=84=EB=8B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/a_traffic.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hwe/a_traffic.php b/hwe/a_traffic.php index 18cf608a..7a083bc8 100644 --- a/hwe/a_traffic.php +++ b/hwe/a_traffic.php @@ -23,6 +23,9 @@ $online = []; $curonline = getOnlineNum(); foreach ($log as $i => $value) { $parse = Json::decode($value); + if(is_array($parse) === false){ + continue; + } if(count($parse) < 5){ continue; }