From 0aea146a4cdccf41382676ae8add72edf6c1c87b Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Mon, 28 Oct 2013 13:39:39 +0100 Subject: [PATCH] // Code cleaning stats modules --- install-dev/models/install.php | 5 +---- modules/statspersonalinfos/statspersonalinfos.php | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/install-dev/models/install.php b/install-dev/models/install.php index 30ccb0981..b064861a5 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -538,10 +538,7 @@ class InstallModelInstall extends InstallAbstractModel 'dashtrends', 'dashgoals', 'dashproducts', - 'graphartichow', - 'graphgooglechart', - 'graphvisifire', - 'graphxmlswfcharts', + 'graphnvd3', 'gridhtml', 'homefeatured', 'homeslider', diff --git a/modules/statspersonalinfos/statspersonalinfos.php b/modules/statspersonalinfos/statspersonalinfos.php index e24ebb4c0..7ec4ada40 100644 --- a/modules/statspersonalinfos/statspersonalinfos.php +++ b/modules/statspersonalinfos/statspersonalinfos.php @@ -75,7 +75,8 @@ class StatsPersonalInfos extends ModuleGraph

'; - if (count(Customer::getCustomers())) + $has_customers = (bool)Db::getInstance()->getValue('SELECT id_customer FROM '._DB_PREFIX_.'customer'); + if ($has_customers) { if (Tools::getValue('export')) if (Tools::getValue('exportType') == 'gender')