fixing "now playing" in details.
This commit is contained in:
11
class.php
11
class.php
@@ -42,7 +42,15 @@ class ps4 {
|
|||||||
echo '<div class="row">';
|
echo '<div class="row">';
|
||||||
$i++;
|
$i++;
|
||||||
echo '<div class="PlaytimeStart">'. $this->secondsToDate($row["game_start"]) .'</div>';
|
echo '<div class="PlaytimeStart">'. $this->secondsToDate($row["game_start"]) .'</div>';
|
||||||
echo '<div class="PlaytimeEnd">'. $this->secondsToDate($row["game_end"]) .'</div>';
|
|
||||||
|
echo '<div class="PlaytimeEnd">';
|
||||||
|
if ($row["game_end"] == "") {
|
||||||
|
echo "";
|
||||||
|
} else {
|
||||||
|
echo $this->secondsToDate($row["game_end"]);
|
||||||
|
}
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
echo '<div class="PlaytimeTotal">';
|
echo '<div class="PlaytimeTotal">';
|
||||||
if ($row["game_end"] == "") {
|
if ($row["game_end"] == "") {
|
||||||
echo "<strong>now playing</strong>";
|
echo "<strong>now playing</strong>";
|
||||||
@@ -50,6 +58,7 @@ class ps4 {
|
|||||||
echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true);
|
echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true);
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
echo '<div class="row"><div class="head PlaytimeStart"></div><div class="head PlaytimeEnd"></div><div class="head PlaytimeTotal">'. $i .' sessions</div></div>';
|
echo '<div class="row"><div class="head PlaytimeStart"></div><div class="head PlaytimeEnd"></div><div class="head PlaytimeTotal">'. $i .' sessions</div></div>';
|
||||||
|
|||||||
Reference in New Issue
Block a user