Merge pull request #36621 from frederic34/patch-8

fix warning in company.lib.php
This commit is contained in:
Laurent Destailleur 2025-12-12 23:49:56 +01:00 committed by GitHub
commit 6f677cf83b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1876,7 +1876,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = null, $nopr
}
$sortfield_new = implode(',', $sortfield_new_list);
$complete = (string) $filters['search_complete']; // Can be 'na', '0', '50', '100'
$complete = (string) ($filters['search_complete'] ?? ''); // Can be 'na', '0', '50', '100'
$percent = $complete !== '' ? $complete : -1;
if ((string) $complete == '0') {
$percent = '0';