From 3265ba6c99cab66f18fa7f647d516e5398ef2860 Mon Sep 17 00:00:00 2001 From: Stefan Brannfjell Date: Mon, 22 Sep 2014 00:06:20 +0200 Subject: [PATCH] Fix #170 Bug in characterprofile.php for TFS 0.2/3. --- characterprofile.php | 85 ++++++++++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 35 deletions(-) diff --git a/characterprofile.php b/characterprofile.php index 005af9e..f2b1872 100644 --- a/characterprofile.php +++ b/characterprofile.php @@ -51,47 +51,62 @@ if (isset($_GET['name']) === true && empty($_GET['name']) === false) { echo 'Never.'; } - ?> + ?> + - 0) //if player doesn't have any achievement points it won't echo the line below. - echo 'Achievement Points' .$achievement. ' '; - } + 0) //if player doesn't have any achievement points it won't echo the line below. + echo 'Achievement Points' .$achievement. ' '; + } } ?> - 0) - $playerlist[] = $h['owner']; - - if ($profile_data['id'] = $h['owner']) { ?> -
  • House: , $value) { - if ($key == $h['town_id']) { - echo $value; - } - } ?>
  • -
  • Status: ONLINE'; - } else { - echo 'OFFLINE'; - } - } else { - if ($profile_data['online'] == 1) { - echo 'ONLINE'; - } else { - echo 'OFFLINE'; + + 0) + $playerlist[] = $h['owner']; + + if ($profile_data['id'] = $h['owner']) { + ?> +
  • House: , $value) { + if ($key == $h['town_id']) { + echo $value; + } + } + ?> +
  • + + } + } + ?> + +
  • Status: ONLINE'; + } else { + echo 'OFFLINE'; + } + } else { + if ($profile_data['online'] == 1) { + echo 'ONLINE'; + } else { + echo 'OFFLINE'; + } + } + ?> +
  • Created:
  • Comment: