dolibarr/htdocs/fichinter
evarisk-kilyan a5178b1832
Qual: Fix PHPStan warning (undefined variable $maxlength) in fichinter/card-rec.php (#38776)
PHPStan level 9 (apstats config) reports at line 544:
"Variable $maxlength might not be defined."

$maxlength was never defined in this standalone page and was passed as
the 4th argument (max label length) of FormProjets::select_projects().
An undefined variable evaluates to null, and dol_trunc() returns the
string unchanged when its size argument is empty (null or 0). Passing 0
explicitly keeps the exact same behaviour (no truncation) and removes
the undefined-variable warning.

Co-authored-by: Muvikx <kilyan.cotten@epitech.eu>
2026-06-14 01:08:03 +02:00
..
admin clean code (#38719) 2026-06-11 23:42:06 +02:00
class FIX intervention fetch user author/modify ID (#38738) 2026-06-12 16:47:18 +02:00
stats Debug v23 2025-11-22 16:23:07 +01:00
tpl NEW Display thirdparty name with ref in linked objects for all document types (#37906) 2026-04-19 15:59:45 +02:00
agenda.php clean code (#38719) 2026-06-11 23:42:06 +02:00
card-rec.php Qual: Fix PHPStan warning (undefined variable $maxlength) in fichinter/card-rec.php (#38776) 2026-06-14 01:08:03 +02:00
card.php clean code (#38719) 2026-06-11 23:42:06 +02:00
contact.php clean code (#38719) 2026-06-11 23:42:06 +02:00
document.php clean code (#38719) 2026-06-11 23:42:06 +02:00
index.php clean code (#38719) 2026-06-11 23:42:06 +02:00
list.php clean code (#38719) 2026-06-11 23:42:06 +02:00
note.php Add custom tpl to note (#38437) 2026-05-26 16:02:36 +02:00