// Fixed typo
This commit is contained in:
1 parent
d2ecdfb93d
commit
eff292731f
2 files changed
+6
-4
No files matched your search
Vendored
+2
@@ -359,6 +359,8 @@
|
|||||||
'HelpAccess' => '',
|
'HelpAccess' => '',
|
||||||
'HelpAccessCore' => 'classes/HelpAccess.php',
|
'HelpAccessCore' => 'classes/HelpAccess.php',
|
||||||
'Helper' => '',
|
'Helper' => '',
|
||||||
|
'HelperCalendar' => '',
|
||||||
|
'HelperCalendarCore' => 'classes/helper/HelperCalendar.php',
|
||||||
'HelperCore' => 'classes/helper/Helper.php',
|
'HelperCore' => 'classes/helper/Helper.php',
|
||||||
'HelperForm' => '',
|
'HelperForm' => '',
|
||||||
'HelperFormCore' => 'classes/helper/HelperForm.php',
|
'HelperFormCore' => 'classes/helper/HelperForm.php',
|
||||||
|
|||||||
@@ -544,15 +544,15 @@ class AdminStatsControllerCore extends AdminStatsTabController
|
|||||||
$value = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
$value = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM `'._DB_PREFIX_.'customer` c
|
FROM `'._DB_PREFIX_.'customer` c
|
||||||
'.Shop::addSqlRestriction().'
|
WHERE active = 1
|
||||||
WHERE active = 1');
|
'.Shop::addSqlRestriction());
|
||||||
if ($value)
|
if ($value)
|
||||||
{
|
{
|
||||||
$orders = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
$orders = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
|
||||||
SELECT COUNT(*)
|
SELECT COUNT(*)
|
||||||
FROM `'._DB_PREFIX_.'orders` o
|
FROM `'._DB_PREFIX_.'orders` o
|
||||||
'.Shop::addSqlRestriction().'
|
WHERE valid = 1
|
||||||
WHERE valid = 1');
|
'.Shop::addSqlRestriction());
|
||||||
$value = round($orders / $value, 2);
|
$value = round($orders / $value, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user