소스 검색

OpeningSolver : correctif

packProduct
Guillaume 2 년 전
부모
커밋
3b0bd28e3d
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      Solver/Section/OpeningSolver.php

+ 5
- 1
Solver/Section/OpeningSolver.php 파일 보기

@@ -49,7 +49,11 @@ class OpeningSolver
if($opening) {
$now = new \DateTime();
if($weekDay == $now->format('N')) {
if($now < $opening->getTimeEnd()) {
$timeEnd = $opening->getTimeEnd();
$timeStart = $opening->getTimeStart();

if((($timeEnd && $now < $timeEnd) || !$timeEnd)
&& (($timeStart && $now > $timeStart) || !$timeStart) ) {
return true;
}
}

Loading…
취소
저장