정적 분석 결과 반영

This commit is contained in:
2018-04-09 01:29:29 +09:00
parent 27d313c594
commit da89d81ef9
28 changed files with 116 additions and 37 deletions
+2 -1
View File
@@ -38,6 +38,7 @@ if ($me['level'] == 0 || ($me['level'] == 1 && $me['belong'] < $nation['secretli
if ($type == 0) {
$type = 7;
}
$sel = [];
$sel[$type] = "selected";
?>
@@ -75,7 +76,7 @@ $sel[$type] = "selected";
$query = "select troop,name from troop where nation='{$me['nation']}'";
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), "");
$troopCount = MYDB_num_rows($result);
$troopName = [];
for ($i=0; $i < $troopCount; $i++) {
$troop = MYDB_fetch_array($result);
$troopName[$troop['troop']] = $troop['name'];