Merge pull request #29151 from defrance/patch-328

totalarray must not reinit here
This commit is contained in:
Laurent Destailleur 2024-03-31 15:59:06 +02:00 committed by GitHub
commit 97ae448f0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1127,7 +1127,7 @@ if (getDolGlobalString('PROJECT_TIMES_SPENT_FORMAT')) {
// --------------------------------------------------------------------
$i = 0;
$savnbfield = $totalarray['nbfield'];
$totalarray = array();
$totalarray['nbfield'] = 0;
$imaxinloop = ($limit ? min($num, $limit) : $num);
while ($i < $imaxinloop) {