Fix: Graph report rubbish information. Better to have them as option.

This commit is contained in:
Laurent Destailleur 2014-11-08 14:58:43 +01:00
parent 4f08408065
commit 92cdef71e8
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ print $total;
print '</td></tr>';
print '</table>';
if (! empty($conf->categorie->enabled))
if (! empty($conf->categorie->enabled) && ! empty($conf->global->CATEGORY_GRAPHSTATS_ON_PRODUCTS))
{
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
print '<br>';

View File

@ -159,7 +159,7 @@ print $total;
print '</td></tr>';
print '</table>';
if (! empty($conf->categorie->enabled))
if (! empty($conf->categorie->enabled) && ! empty($conf->global->CATEGORY_GRAPHSTATS_ON_THIRDPARTIES))
{
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$elementtype = 'societe';