Skip to content

Commit

Permalink
Phase count change triggers reliability update
Browse files Browse the repository at this point in the history
  • Loading branch information
kestasjk committed Jan 3, 2023
1 parent e39adab commit 14a182e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamemaster/members.php
Expand Up @@ -605,7 +605,7 @@ function registerTurn()
// increment the turn count (turn counts are decremented after 1 year in /gamemaster.php)
$DB->sql_put("UPDATE wD_Users u
INNER JOIN wD_Members m ON m.userID = u.id
SET u.yearlyPhaseCount = u.yearlyPhaseCount + 1
SET u.yearlyPhaseCount = u.yearlyPhaseCount + 1, u.isPhasesDirty = 1
WHERE m.gameID = ".$this->Game->id."
AND ( m.status='Playing' OR m.status='Left' )
AND EXISTS(SELECT o.id FROM wD_Orders o WHERE o.gameID = m.gameID AND o.countryID = m.countryID)");
Expand Down

0 comments on commit 14a182e

Please sign in to comment.