This commit is contained in:
Thijs Stobbelaar 2023-09-29 14:36:41 +02:00
parent eb7c931d7d
commit 8ed3b6f691

View file

@ -89,17 +89,17 @@ error_reporting(E_ALL);
echo "</table>"; echo "</table>";
} }
foreach ($players_matches as $key => $update) {
echo "Last update: "; if ($key == 'updated'){
foreach ($players_matches as $player_data) { echo "Last update: ";
if (isset($player_data['updated'])) { echo $update['updated'];
echo $player_data['updated'];
break; // Once found, exit the loop
} }
} }
?> ?>
</section> </section>
</main> </main>