Fix print problem
This commit is contained in:
parent
4eb5007098
commit
d4e8970a5c
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ trait CouponTrait {
|
|||
|
||||
// ---- Contrôle des calendriers de diffusion
|
||||
$calendars = Calendrier::where(['calendrier_couponId' => $coupon->coupon_id])->get();
|
||||
if(isset($calendars)){
|
||||
if(isset($calendars) && !$calendars->isEmpty()){
|
||||
$pub = false;
|
||||
foreach ($calendars as $calendar) {
|
||||
if(strtotime(date('Y-m-d H:i:s')) > strtotime($calendar->calendrier_startdate) && strtotime(date('Y-m-d H:i:s')) < strtotime($calendar->calendrier_enddate)){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue