From 02dd832932c814e50cb53d5aa7391650b741826e Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Wed, 22 Nov 2017 10:03:54 +0100 Subject: [PATCH] fix: undefined index --- Templates/Profile/profile.tpl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Templates/Profile/profile.tpl b/Templates/Profile/profile.tpl index 3e965532..b8e4f5a4 100644 --- a/Templates/Profile/profile.tpl +++ b/Templates/Profile/profile.tpl @@ -1,6 +1,6 @@ Player profile - - - + + Player username; ?> - + Details @@ -40,7 +40,7 @@ include("menu.tpl"); ?> - userinfo['birthday'] != 0) { $bday = explode("-",$session->userinfo['birthday']); } @@ -63,10 +63,10 @@ include("menu.tpl"); ?> userinfo['gender'] == 1) { echo "checked"; } ?> >m userinfo['gender'] == 2) { echo "checked"; } ?> >f - + Location - + userinfo['desc1']; ?> - + Medals @@ -99,9 +99,9 @@ INDELING CATEGORIEEN: == 7. in top 3 - verdediging == == 8. in top 3 - klimmers == == 9. in top 3 - overval == -******************************/ - - +******************************/ + + foreach($varmedal as $medal) { $titel="Bonus"; switch ($medal['categorie']) { @@ -141,7 +141,7 @@ INDELING CATEGORIEEN: case "12": $titel="Top 10 of Rank Attackers of week ".$medal['points']." in a row"; break; - } + } echo" ".$titel." ".$medal['plaats']." @@ -155,7 +155,7 @@ INDELING CATEGORIEEN: [#0] - userinfo['tribe'] == 1 && $session->userinfo['username'] == "Shadow") { echo"Tribe Romans[#roman]"; @@ -171,8 +171,8 @@ INDELING CATEGORIEEN: echo"Multihunter[#TEAM]"; } ?>