Sfoglia il codice sorgente

Merge pull request #1543 from moteus/dashboard_switch_uptime

Fix. Display `Switch Uptime` on User Dashboard.
Nate 9 anni fa
parent
commit
399b79e624
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      core/user_settings/user_dashboard.php

+ 3 - 3
core/user_settings/user_dashboard.php

@@ -984,9 +984,9 @@
 					$tmp = explode(' ', $tmp);
 					$uptime = (($tmp[1]) ? $tmp[1].'y ' : null);
 					$uptime .= (($tmp[3]) ? $tmp[3].'d ' : null);
-					$uptime .= (($tmp[5]) ? $tmp[3].'h ' : null);
-					$uptime .= (($tmp[7]) ? $tmp[3].'m ' : null);
-					$uptime .= (($tmp[9]) ? $tmp[3].'s' : null);
+					$uptime .= (($tmp[5]) ? $tmp[5].'h ' : null);
+					$uptime .= (($tmp[7]) ? $tmp[7].'m ' : null);
+					$uptime .= (($tmp[9]) ? $tmp[9].'s' : null);
 					if ($uptime != '') {
 						$hud[$n]['html'] .= "<tr class='tr_link_void'>\n";
 						$hud[$n]['html'] .= "<td valign='top' class='".$row_style[$c]." hud_text'>".$text['label-switch_uptime']."</td>\n";