fixing image sale
This commit is contained in:
parent
2b49cc5543
commit
a6d90e4b40
@ -15,7 +15,7 @@ class Sale extends BaseSale {
|
||||
global $cookie;
|
||||
|
||||
$sale = parent::toArray();
|
||||
$is_active = strtotime($this->date_start) < strtotime(date('Y-m-d 07:00:00'));
|
||||
$is_active = strtotime($this->date_start) <= strtotime(date('Y-m-d 07:00:00'));
|
||||
$sale['img'] = $this->getSaleImage($this->id, $is_active);
|
||||
$sale['reduction'] = $this->extraFields['reduction'] ? $this->extraFields['reduction'] : '0';
|
||||
$sale['tags'] = $this->extraFields['tags'] ? $this->extraFields['tags'] : [];
|
||||
|
Loading…
Reference in New Issue
Block a user