Skip to content

Commit

Permalink
FIX PHP Warning: Undefined array key "totalam" on line 1891 (#29487)
Browse files Browse the repository at this point in the history
FIX PHP Warning:  Undefined array key "totalam" on line 1891
  • Loading branch information
PsyCrow-code authored Apr 26, 2024
1 parent 9ed8f07 commit 80ee6c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/fourn/facture/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1885,6 +1885,9 @@
$totalarray['nbfield']++;
$totalarray['pos'][$totalarray['nbfield']] = 'totalam';
}
if (empty($totalarray['val']['totalam'])) {
$totalarray['val']['totalam'] = 0; // avoid PHP Warning: Undefined array key "totalam" on line 1891
}
$totalarray['val']['totalam'] += $totalpay;
}

Expand Down

0 comments on commit 80ee6c8

Please sign in to comment.