From d7ab133fabfb2a5c53f735c19283262f69568cc6 Mon Sep 17 00:00:00 2001 From: Sebastien Plante Date: Thu, 20 Dec 2018 23:32:14 -0500 Subject: [PATCH] fixing "now playing" in details. --- class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/class.php b/class.php index fc85b51..2b1422d 100644 --- a/class.php +++ b/class.php @@ -42,7 +42,15 @@ class ps4 { echo '
'; $i++; echo '
'. $this->secondsToDate($row["game_start"]) .'
'; - echo '
'. $this->secondsToDate($row["game_end"]) .'
'; + + echo '
'; + if ($row["game_end"] == "") { + echo ""; + } else { + echo $this->secondsToDate($row["game_end"]); + } + echo '
'; + echo '
'; if ($row["game_end"] == "") { echo "now playing"; @@ -50,6 +58,7 @@ class ps4 { echo $this->playtime((($row["game_end"]-$row["game_start"])/1000),true); } echo '
'; + echo '
'; } echo '
'. $i .' sessions
';