dolibarr/htdocs/loan/payment
Jam Balaya 67aadf2cba
FIX: undefined variables from wrong variable names (#39115)
Several pages read a variable that is never defined on that page (copy/paste
from another page), so PHPStan level 10 flags 'Variable $x might not be
defined' and PHP 8 emits an undefined-variable warning with a null value:

- reception/card.php: $reception -> $object (matches the 10 other builddoc
  blocks in the same file; otherwise the output PDF language is wrong)
- loan/payment/card.php: $object->id -> $id (page uses $id; matches the
  adjacent enabled-button line)
- opensurvey/card.php: ConfirmRemovalOfPoll uses $id -> $numsondage
  (otherwise the confirmation message placeholder is empty)
- opensurvey/results.php: guard $expiredate with !empty() (never defined on
  this page; still falls back to $object->date_fin)
- projet/card.php: guard $morecss with !empty() (never defined here)

No behaviour change beyond removing the undefined-variable reads.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-07-13 16:08:10 +02:00
..
card.php FIX: undefined variables from wrong variable names (#39115) 2026-07-13 16:08:10 +02:00
payment.php clean code (#38472) 2026-06-10 19:31:35 +02:00