정적 분석 결과 반영. 베팅 코드는 새로 작성

This commit is contained in:
2018-04-08 20:18:18 +09:00
parent ba4ff29e4a
commit b78fe22633
5 changed files with 66 additions and 31 deletions
+3 -3
View File
@@ -97,9 +97,9 @@ if($me['level'] == 0) {
if($myNation['level'] > 0) {
// 첩보도시도 목록에 추가
$where = 'city=0';
$cities = explode("|", $myNation['spy']);
for($i=0; $i < count($cities); $i++) {
$city = intdiv($cities[$i], 10);
$cities = array_map('intval',explode("|", $myNation['spy']));
foreach($cities as $citySpy) {
$city = intdiv($citySpy, 10);
$where .= " or city='{$city}'";
}