Fixed: change the variable name

This commit is contained in:
Amit sharma
2025-12-11 12:24:57 +05:30
committed by azhar bhat
parent 4a080946a3
commit 963ac13b63

View File

@@ -184,11 +184,11 @@ class StatsRegistrations extends ModuleGraph
{
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($this->query.$this->getDate());
foreach ($result as $row) {
$days = (int)Tools::substr($row['date_add'], 0, 4);
if (!isset($this->_values[$days])) {
$this->_values[$days] = 0;
$year = (int)Tools::substr($row['date_add'], 0, 4);
if (!isset($this->_values[$year])) {
$this->_values[$year] = 0;
}
$this->_values[$days]++;
$this->_values[$year]++;
}
}