NEW Show last result code of cron jobs in error in red

This commit is contained in:
Laurent Destailleur 2018-05-01 19:51:53 +02:00
parent cb76d2ce0f
commit 5e14b165c9

View File

@ -508,7 +508,10 @@ if ($num > 0)
print '</td>';
print '<td class="center">';
if ($obj->lastresult != '') {print dol_trunc($obj->lastresult);}
if ($obj->lastresult != '') {
if (empty($obj->lastresult)) print $obj->lastresult;
else print '<span class="error">'.dol_trunc($obj->lastresult).'</div>';
}
print '</td>';
print '<td>';