mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX: warning when Workboard Responses display non numeric strings
This commit is contained in:
parent
6477c03ce6
commit
104439f79d
|
|
@ -437,7 +437,7 @@ if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
|
|||
|
||||
// We calculate $totallate. Must be defined before start of next loop because it is show in first fetch on next loop
|
||||
foreach ($valid_dashboardlines as $board) {
|
||||
if ($board->nbtodolate > 0) {
|
||||
if ($board->nbtodolate > 0 && is_numeric($board->nbtodo) && is_numeric($board->nbtodolate)) {
|
||||
$totaltodo += $board->nbtodo;
|
||||
$totallate += $board->nbtodolate;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user