diff --git a/modules/statsbestcategories/statsbestcategories.php b/modules/statsbestcategories/statsbestcategories.php index 50b038743..56cba9222 100644 --- a/modules/statsbestcategories/statsbestcategories.php +++ b/modules/statsbestcategories/statsbestcategories.php @@ -152,6 +152,9 @@ class StatsBestCategories extends ModuleGrid $date_between = $this->getDate(); $date_from = date('Y-m-d', strtotime($this->_employee->stats_date_from)); $date_to = date('Y-m-d', strtotime($this->_employee->stats_date_to)); + if ($date_from == $date_to) { + $date_to = date('Y-m-d', strtotime('+1 day', strtotime($date_to))); + } $id_lang = $this->getLang(); //If column 'order_detail.original_wholesale_price' does not exist, create it diff --git a/modules/statsbestproducts/statsbestproducts.php b/modules/statsbestproducts/statsbestproducts.php index 1d8449bfd..c0d7dd6ac 100644 --- a/modules/statsbestproducts/statsbestproducts.php +++ b/modules/statsbestproducts/statsbestproducts.php @@ -154,6 +154,9 @@ class StatsBestProducts extends ModuleGrid $date_between = $this->getDate(); $date_from = date('Y-m-d', strtotime($this->_employee->stats_date_from)); $date_to = date('Y-m-d', strtotime($this->_employee->stats_date_to)); + if ($date_from == $date_to) { + $date_to = date('Y-m-d', strtotime('+1 day', strtotime($date_to))); + } $array_date_between = explode(' AND ', $date_between); $id_lang = $this->getLang();