From 8fd6b91cf7c5a8da5edb7998626058881e7a2eda Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 17 Apr 2018 21:57:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=84=EC=9D=B4=ED=85=9C=20=EC=8A=B5?= =?UTF-8?q?=EB=93=9D=EC=8B=9C=20warning=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/func.php b/hwe/func.php index 93487b90..06b239dd 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -2208,7 +2208,7 @@ function uniqueItem($general, $log, $vote=0) { $item[] = $i; } } - $it = $item[rand() % count($item)]; + $it = $item[rand() % count($item)]??0; $query = "update general set {$type}='$it' where no='{$general['no']}'"; MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");