아이템 습득시 warning 해결
This commit is contained in:
+1
-1
@@ -2208,7 +2208,7 @@ function uniqueItem($general, $log, $vote=0) {
|
|||||||
$item[] = $i;
|
$item[] = $i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$it = $item[rand() % count($item)];
|
$it = $item[rand() % count($item)]??0;
|
||||||
|
|
||||||
$query = "update general set {$type}='$it' where no='{$general['no']}'";
|
$query = "update general set {$type}='$it' where no='{$general['no']}'";
|
||||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
|
|||||||
Reference in New Issue
Block a user