Skip to content

Commit

Permalink
Fix: Graph report rubbish information. Better to have them as option.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 8, 2014
1 parent 4f08408 commit 92cdef7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/product/index.php
Expand Up @@ -167,7 +167,7 @@
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>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/index.php
Expand Up @@ -159,7 +159,7 @@
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';
Expand Down

0 comments on commit 92cdef7

Please sign in to comment.