diff --git a/htdocs/societe/index.php b/htdocs/societe/index.php index d70b2fcb3cd..0463737be9a 100644 --- a/htdocs/societe/index.php +++ b/htdocs/societe/index.php @@ -89,7 +89,7 @@ if ($result) while ($objp = $db->fetch_object($result)) { $found=0; - if ($objp->client == 1 || $objp->client == 3) { $found=1; $third['customer']++; } + if (empty($conf->global->SOCIETE_DISABLE_CUSTOMERS) && ($objp->client == 1 || $objp->client == 3)) { $found=1; $third['customer']++; } if (empty($conf->global->SOCIETE_DISABLE_PROSPECTS) && ($objp->client == 2 || $objp->client == 3)) { $found=1; $third['prospect']++; } if ($conf->fournisseur->enabled && $objp->fournisseur) { $found=1; $third['supplier']++; } @@ -100,7 +100,7 @@ else dol_print_error($db); print '
| '.$langs->trans("Statistics").' | |
| '; $data=array(); | |