Fixed show data. tiquet: #2865

This commit is contained in:
m-lopez-f 2015-10-19 15:27:25 +02:00
parent 3218bd7fec
commit 102375d377
1 changed files with 2 additions and 40 deletions

View File

@ -1296,26 +1296,7 @@ foreach ($result as $row) {
$salida = 0;
}
else {
$intDays = $module_value / 8640000;
$dias = $intDays - (integer)$intDays;
$intDays = (integer)$intDays;
$intHours = $dias * 24;
$Hours = $intHours - (integer)$intHours;
$intHours = (integer)$intHours;
$intMinutes = $Hours * 60;
$minutos = $intMinutes - (integer)$intMinutes;
$intMinutes = (integer)$intMinutes;
$intSeconds = $minutos * 60;
$ConvertSeconds = $intDays . " Days - ". $intHours ." Hours - ". $intMinutes . " Mins";
if ($ConvertSeconds) {
$salida = $ConvertSeconds;
}
else {
$salida = $module_value;
}
$salida = $row["datos"];
}
}
else {
@ -1338,26 +1319,7 @@ foreach ($result as $row) {
if ($module_value == $sub_string) {
$intDays = $module_value / 8640000;
$dias = $intDays - (integer)$intDays;
$intDays = (integer)$intDays;
$intHours = $dias * 24;
$Hours = $intHours - (integer)$intHours;
$intHours = (integer)$intHours;
$intMinutes = $Hours * 60;
$minutos = $intMinutes - (integer)$intMinutes;
$intMinutes = (integer)$intMinutes;
$intSeconds = $minutos * 60;
$ConvertSeconds = $intDays . " Days - ". $intHours ." Hours - ". $intMinutes . " Mins";
if ($ConvertSeconds) {
$salida = $ConvertSeconds;
}
else {
$salida = $module_value;
}
$salida = $module_value;
}
else {
$salida = "<span " .