diff --git a/htdocs/fichinter/stats/index.php b/htdocs/fichinter/stats/index.php
index 9bbbea09141..3551d8baab3 100644
--- a/htdocs/fichinter/stats/index.php
+++ b/htdocs/fichinter/stats/index.php
@@ -233,8 +233,8 @@ print '
';
print '
| '.$langs->trans("Filter").' |
';
// Company
print '| '.$langs->trans("ThirdParty").' | ';
- if ($mode == 'customer') $filter='s.client in (1,2,3)';
- print $form->select_company($socid,'socid',$filter,1,0,0,array(),0,'','style="width: 95%"');
+ $filter = 's.client in (1,2,3)';
+ print $form->select_company($socid, 'socid', $filter, 1, 0, 0, array(), 0, '', 'style="width: 95%"');
print ' |
';
// User
print '| '.$langs->trans("CreatedBy").' | ';
|