From 30ae93cfd9afac87928c4d8a9c11034a17cff2bf Mon Sep 17 00:00:00 2001 From: hecht Date: Thu, 24 Nov 2011 20:59:22 +0000 Subject: [PATCH] do not show count-down if not required! --- ag/char_overview.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ag/char_overview.php b/ag/char_overview.php index e8e939d..11371c6 100644 --- a/ag/char_overview.php +++ b/ag/char_overview.php @@ -84,8 +84,12 @@ foreach($chars as $my_charz){ $zeit_in_sek[$char_zahl] = $kampf_a['dauer']; $temp = 'Status: '.$my_charz['status'].'
'; } else { - $zeit_in_sek[$char_zahl] = getEventStatusBlocked($my_charz['id']); - $temp = 'Status: '.$my_charz['status'].'
'; + if(isEventToFetchAwaiting($my_charz['id'])) { + $zeit_in_sek[$char_zahl] = getEventStatusBlocked($my_charz['id']); + $temp = 'Status: '.$my_charz['status'].'
'; + } else { + $temp = 'Status: '.$my_charz['status'].''; + } } $werte = "Stärke: ".$c_starke."
Verteidigung: ".$c_verteidigung."
Geschwindigkeit: ".$c_speed."
Ausdauer: ".$c_ausdauer."
Glück: ".$c_glueck; $lp = "
Lernpunkte: ".$my_charz['lernpunkte']."";