|
@@ 137-139 (lines=3) @@
|
| 134 |
|
$match2['match_id'] = $matchdata['match_id']; // This is generated below and passed to listener |
| 135 |
|
$match2['team_id'] = $matchUp2[0][0]['team']; |
| 136 |
|
$match2['player1'] = $matchUp2[0][0]['player_id']; |
| 137 |
|
if(isset($matchUp2[0][1]['player_id'])){ |
| 138 |
|
$match2['player2'] = $matchUp2[0][1]['player_id']; |
| 139 |
|
} |
| 140 |
|
$match2['opponent'] = $matchUp2[1][0]['team']; |
| 141 |
|
$this->teammatch->create($match2); //save to match table |
| 142 |
|
|
|
@@ 146-148 (lines=3) @@
|
| 143 |
|
$match2['match_id'] = $matchdata['match_id']; // This is generated below and passed to listener |
| 144 |
|
$match2['team_id'] = $matchUp2[1][0]['team']; |
| 145 |
|
$match2['player1'] = $matchUp2[1][0]['player_id']; |
| 146 |
|
if(isset($matchUp2[1][1]['player_id'])){ |
| 147 |
|
$match2['player2'] = $matchUp2[1][1]['player_id']; |
| 148 |
|
} |
| 149 |
|
$match2['opponent'] = $matchUp2[0][0]['team']; |
| 150 |
|
$this->teammatch->create($match2); //save to match table |
| 151 |
|
|