We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $db = Smr\Database::getInstance(); |
| 18 | 18 | $db->switchDatabases($var['HistoryDatabase']); |
| 19 | 19 | $dbResult = $db->read('SELECT start_date, type, end_date, game_name, speed, game_id ' . |
| 20 | - 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
| 20 | + 'FROM game WHERE game_id = ' . $db->escapeNumber($game_id)); |
|
| 21 | 21 | $dbRecord = $dbResult->record(); |
| 22 | 22 | $template->assign('GameName', $game_name); |
| 23 | 23 | $template->assign('Start', date($account->getDateFormat(), $dbRecord->getInt('start_date'))); |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | foreach ($dbResult->records() as $dbRecord) { |
| 322 | 322 | try { |
| 323 | 323 | $otherPlayer = SmrPlayer::getPlayer($dbRecord->getInt('from_account_id'), |
| 324 | - $this->getGameID(), $forceUpdate); |
|
| 324 | + $this->getGameID(), $forceUpdate); |
|
| 325 | 325 | } catch (PlayerNotFoundException $e) { |
| 326 | 326 | // Skip players that have not joined this game |
| 327 | 327 | continue; |
@@ -879,9 +879,9 @@ discard block |
||
| 879 | 879 | */ |
| 880 | 880 | public function canFight() : bool { |
| 881 | 881 | return !($this->hasNewbieTurns() || |
| 882 | - $this->isDead() || |
|
| 883 | - $this->isLandedOnPlanet() || |
|
| 884 | - $this->hasFederalProtection()); |
|
| 882 | + $this->isDead() || |
|
| 883 | + $this->isLandedOnPlanet() || |
|
| 884 | + $this->hasFederalProtection()); |
|
| 885 | 885 | } |
| 886 | 886 | |
| 887 | 887 | public function setDead(bool $bool) : void { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | // Delete all tickets and re-insert the winning ticket |
| 32 | 32 | $db->write('DELETE FROM player_has_ticket WHERE game_id = ' . $db->escapeNumber($gameID)); |
| 33 | 33 | $db->write('INSERT INTO player_has_ticket (game_id, account_id, time, prize) ' |
| 34 | - .'VALUES (' . $db->escapeNumber($gameID) . ',' . $db->escapeNumber($winner_id) . ',\'0\',' . $db->escapeNumber($lottoInfo['Prize']) . ')'); |
|
| 34 | + .'VALUES (' . $db->escapeNumber($gameID) . ',' . $db->escapeNumber($winner_id) . ',\'0\',' . $db->escapeNumber($lottoInfo['Prize']) . ')'); |
|
| 35 | 35 | |
| 36 | 36 | $db->unlock(); |
| 37 | 37 | |
@@ -90,18 +90,22 @@ |
||
| 90 | 90 | |
| 91 | 91 | echo ('<tr>'); |
| 92 | 92 | echo ('<td colspan="5">'); |
| 93 | - if (isset($previous_topic_id) && $previous_topic_id > 0) |
|
| 94 | - echo ('<b>Previous:</b> <a href="/manual.php?' . $previous_topic_id . '">' . get_numbering($previous_topic_id) . $previous_topic . '</a> '); |
|
| 95 | - if (isset($up_topic_id) && $up_topic_id > 0) |
|
| 96 | - echo ('<b>Up:</b> <a href="/manual.php?' . $up_topic_id . '">' . get_numbering($up_topic_id) . $up_topic . '</a> '); |
|
| 97 | - if (isset($next_topic_id) && $next_topic_id > 0) |
|
| 98 | - echo ('<b>Next:</b> <a href="/manual.php?' . $next_topic_id . '">' . get_numbering($next_topic_id) . $next_topic . '</a>'); |
|
| 93 | + if (isset($previous_topic_id) && $previous_topic_id > 0) { |
|
| 94 | + echo ('<b>Previous:</b> <a href="/manual.php?' . $previous_topic_id . '">' . get_numbering($previous_topic_id) . $previous_topic . '</a> '); |
|
| 95 | + } |
|
| 96 | + if (isset($up_topic_id) && $up_topic_id > 0) { |
|
| 97 | + echo ('<b>Up:</b> <a href="/manual.php?' . $up_topic_id . '">' . get_numbering($up_topic_id) . $up_topic . '</a> '); |
|
| 98 | + } |
|
| 99 | + if (isset($next_topic_id) && $next_topic_id > 0) { |
|
| 100 | + echo ('<b>Next:</b> <a href="/manual.php?' . $next_topic_id . '">' . get_numbering($next_topic_id) . $next_topic . '</a>'); |
|
| 101 | + } |
|
| 99 | 102 | echo ('</tr>'); |
| 100 | 103 | |
| 101 | 104 | echo ('</table>'); |
| 102 | - } else |
|
| 103 | - echo ('Invalid Topic!'); |
|
| 104 | -} |
|
| 105 | + } else { |
|
| 106 | + echo ('Invalid Topic!'); |
|
| 107 | + } |
|
| 108 | + } |
|
| 105 | 109 | |
| 106 | 110 | function echo_content($topic_id) { |
| 107 | 111 | // database object |