From 3166ba3601422427a7f656aea25b390d63e1db7e Mon Sep 17 00:00:00 2001 From: DiscuzX <153619335@qq.com> Date: Fri, 30 Dec 2022 03:11:37 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B8=96=E5=AD=90=E5=88=97=E8=A1=A8=E5=B8=96?= =?UTF-8?q?=E4=BD=8D=E5=B9=BF=E5=91=8APHP8=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: DiscuzX <153619335@qq.com> --- upload/source/class/adv/adv_threadlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/source/class/adv/adv_threadlist.php b/upload/source/class/adv/adv_threadlist.php index 2cb4de455..0ad6ed774 100644 --- a/upload/source/class/adv/adv_threadlist.php +++ b/upload/source/class/adv/adv_threadlist.php @@ -124,7 +124,7 @@ class adv_threadlist { $vt = $_G[\'adv_vtp_thread\']; $adi = !empty($_G[\'adv_vtp\'][1][$_G[\'adv_vtp_count\']]) ? 1 : 0; $adary = array_diff($_G[\'adv_vtp\'][$adi][$_G[\'adv_vtp_count\']], $_G[\'adv_vtp_showed\']); - $adid = $adary[array_rand($adary)]; + $adid = empty($adary) ? 0 : $adary[array_rand($adary)]; $_G[\'adv_vtp_showed\'][] = $adid; $vttid = $parameters[$adid][\'tid\']; $notag = true; -- Gitee