diff --git a/webapp/controller/MatchController.class.php b/webapp/controller/MatchController.class.php index 4bfbfce3..da6191da 100644 --- a/webapp/controller/MatchController.class.php +++ b/webapp/controller/MatchController.class.php @@ -41,7 +41,7 @@ class MatchController extends BaseAuthedController { $this->refreshKeyExpire($r, MATCH_OK_KEY . $teamUuid, 1000*600); $this->refreshKeyExpire($r, MATCH_OK_KEY . $matchOkDb['target_team'], 1000*600); $this->refreshKeyExpire($r, TEAMID_KEY . $matchOkDb['target_team'], 1000*600); - $this->fillMatchInfo($r, $matchInfo, $matchOkDb); + $this->fillMatchInfo($r, $teamUuid, $matchInfo, $matchOkDb); } else { $currMatchDb = $this->readCurrMatchTeam($r); if (empty($currMatchDb)) { @@ -54,7 +54,7 @@ class MatchController extends BaseAuthedController { } else { if ($currMatchDb['current_team'] != $teamUuid) { $this->matchOk($r, $teamUuid, $currMatchDb); - $this->fillMatchInfo($r, $matchInfo, $this->readMatchOk($r, $teamUuid)); + $this->fillMatchInfo($r, $teamUuid, $matchInfo, $this->readMatchOk($r, $teamUuid)); } } } @@ -143,12 +143,14 @@ class MatchController extends BaseAuthedController { } } - private function fillMatchInfo($r, &$matchInfo, $matchOkDb) + private function fillMatchInfo($r, $teamUuid, &$matchInfo, $matchOkDb) { if (empty($matchOkDb)) { return; } $matchInfo['state'] = 1; + { + } } }