Fix bug reported by scrutinizer

This commit is contained in:
Laurent Destailleur 2018-06-06 18:41:35 +02:00
parent 6b24d81afc
commit b57f3a3f36

View File

@ -137,7 +137,7 @@ function pt($db, $sql, $date)
if ($obj->mode == 'paid') if ($obj->mode == 'paid')
{ {
$amountpaid = $obj->mm; $amountpaid = $obj->mm;
$totalpaid = $totalpaid + $amountpaied; $totalpaid = $totalpaid + $amountpaid;
} }
if ($obj->mode == 'paid') if ($obj->mode == 'paid')