From 5727e82a40745081e901baab9c3a3c349c9dd322 Mon Sep 17 00:00:00 2001 From: Prophet731 Date: Tue, 25 Nov 2014 15:24:57 -0800 Subject: [PATCH] Fixed the display of Playtime for Stats Per Server --- app/controllers/other/PlayerController.php | 3 +++ .../angular/public/battlefield/common/playercard-stats.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/other/PlayerController.php b/app/controllers/other/PlayerController.php index 7d7c7c03b..2d5e16f39 100644 --- a/app/controllers/other/PlayerController.php +++ b/app/controllers/other/PlayerController.php @@ -340,6 +340,9 @@ public function getPlayerStats($id) ); } + foreach($player_stats as $key => $row) + $player_stats[$key]->Playtime = Helper::convertSecToStr($row->Playtime, TRUE); + $pdata = array( 'summary' => array_filter((array)$player_sum_stats[0], 'strlen'), 'per_server' => $player_stats, diff --git a/app/views/angular/public/battlefield/common/playercard-stats.php b/app/views/angular/public/battlefield/common/playercard-stats.php index 03f58d948..ed81dc3bc 100644 --- a/app/views/angular/public/battlefield/common/playercard-stats.php +++ b/app/views/angular/public/battlefield/common/playercard-stats.php @@ -60,7 +60,7 @@ Last Seen Wins Losses - Playtime + Playtime Server