아이템 습득시 warning 해결

This commit is contained in:
2018-04-17 21:57:03 +09:00
parent cf2ace32d1
commit 8fd6b91cf7
+1 -1
View File
@@ -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),"");