부대 번호를 부대장 ID로 변경

This commit is contained in:
2019-04-28 20:50:25 +09:00
parent e21fbaff83
commit 6423c22cf8
12 changed files with 49 additions and 77 deletions
+1 -5
View File
@@ -24,11 +24,7 @@ class MustBeTroopLeader extends Constraint{
$this->checkInputValues();
$this->tested = true;
//XXX: 부대장인지 알 수가 없음
$db = DB::db();
$troopLeader = $db->queryFirstField('SELECT no FROM troop WHERE troop = %i', $this->general['troop']);
if($troopLeader == $this->general['no']){
if($this->general['no'] == $this->general['troop']){
return true;
}