Fixed problems with print data in view

This commit is contained in:
m-lopez-f 2015-10-09 13:47:02 +02:00
parent c0ca789e76
commit 63838760cb

View File

@ -1292,6 +1292,10 @@ foreach ($result as $row) {
$sub_string = substr(io_safe_output($row["datos"]), 0, 12);
if ($module_value == $sub_string) {
if ($module_value == 0 && !$sub_string) {
$salida = 0;
}
else {
$intDays = $module_value / 8640000;
$dias = $intDays - (integer)$intDays;
$intDays = (integer)$intDays;
@ -1313,6 +1317,7 @@ foreach ($result as $row) {
$salida = $module_value;
}
}
}
else {
//Fixed the goliat sends the strings from web
//without HTML entities