Skip to content

Commit

Permalink
Replaced speedtest with just test in stats.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfintel committed Aug 3, 2024
1 parent 7985171 commit 65bb4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions results/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,18 @@
$speedtest = getSpeedtestUserById($_GET['id']);
$speedtests = [];
if (false === $speedtest) {
echo '<div>There was an error trying to fetch the speedtest result for ID "'.htmlspecialchars($_GET['id'], ENT_HTML5, 'UTF-8').'".</div>';
echo '<div>There was an error trying to fetch the test result for ID "'.htmlspecialchars($_GET['id'], ENT_HTML5, 'UTF-8').'".</div>';
} elseif (null === $speedtest) {
echo '<div>Could not find a speedtest result for ID "'.htmlspecialchars($_GET['id'], ENT_HTML5, 'UTF-8').'".</div>';
echo '<div>Could not find a test result for ID "'.htmlspecialchars($_GET['id'], ENT_HTML5, 'UTF-8').'".</div>';
} else {
$speedtests = [$speedtest];
}
} else {
$speedtests = getLatestSpeedtestUsers();
if (false === $speedtests) {
echo '<div>There was an error trying to fetch latest speedtest results.</div>';
echo '<div>There was an error trying to fetch latest test results.</div>';
} elseif (empty($speedtests)) {
echo '<div>Could not find any speedtest results in database.</div>';
echo '<div>Could not find any test results in database.</div>';
}
}
foreach ($speedtests as $speedtest) {
Expand Down

0 comments on commit 65bb4ed

Please sign in to comment.