[php5_debug] 따옴표 누락, 변수 초기화 미비 등등 문법적 문제 수정
This commit is contained in:
+3
-2
@@ -967,7 +967,7 @@ function processAI($connect, $no) {
|
||||
$general = MYDB_fetch_array($result);
|
||||
|
||||
// 입력된 턴이 있으면 그것 실행
|
||||
if($general[turn0] != "00000000000000") {
|
||||
if($general['turn0'] != "00000000000000") {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -979,6 +979,7 @@ function processAI($connect, $no) {
|
||||
$result = MYDB_query($query, $connect) or Error("processAI03 ".MYDB_error($connect),"");
|
||||
$nation = MYDB_fetch_array($result);
|
||||
|
||||
$coreCommand = array();
|
||||
if($general['level'] >= 5) {
|
||||
$query = "select l{$general['level']}turn0 from nation where nation='{$general['nation']}'";
|
||||
$result = MYDB_query($query, $connect) or Error("processAI03 ".MYDB_error($connect),"");
|
||||
@@ -1263,7 +1264,7 @@ function processAI($connect, $no) {
|
||||
}
|
||||
|
||||
// 입력된 턴이 있으면
|
||||
if($coreCommand["l{$general['level']}turn0"] != EncodeCommand(0, 0, 0, 99)) {
|
||||
if(!empty($coreCommand) && ($coreCommand["l{$general['level']}turn0"] != EncodeCommand(0, 0, 0, 99))) {
|
||||
$rulerCommand = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user