Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions www/viewgame
Original file line number Diff line number Diff line change
Expand Up @@ -1270,8 +1270,6 @@ if ($curuser) {

// --------------------PHP Function for displaying median play time--------------------------



function displayMedianTime($rounded_median_time, $alltimes) {
if ($rounded_median_time < 1) return;
// Turn the total minutes into hours and minutes, and then text
Expand All @@ -1285,17 +1283,18 @@ function displayMedianTime($rounded_median_time, $alltimes) {
foreach ($alltimes as $t) {
$time_vote_text = "<strong>" . convertTimeToText($t['time_in_minutes']) . "</strong>";
$note = htmlspecialchars($t['time_note']);
// For new time votes, add the note (if present) and link to the user's profile
// Add the time note (if present)
if ($note != "") {
$time_vote_text .= ": \"$note\"";
}
// Link to the voter's profile
$time_vote_text .= " — <a href='showuser?id={$t['userid']}'>{$t['name']}</a>";
echo "<li>$time_vote_text</li>";
}
echo "</ul></details>";
}

//--------------------End of PHP Functions for displaying median time-----------------
//--------------------End of PHP Function for displaying median time-----------------

if ($ratingCntTot == 0 && $memberReviewCnt == 0) {
displayMedianTime($rounded_median_time, $alltimes);
Expand Down Expand Up @@ -1880,7 +1879,7 @@ if ($embargoCnt > 0)

// ---------------- end Game Details section ------------

} // if ($detailView)
} // if ($detailView || $historyView)


//------------------------ CROSS-RECOMMENDATIONS --------------------------
Expand Down