|
@@ -239,12 +239,12 @@ |
|
|
block discarded – undo |
|
239
|
239
|
$eTime = max($sDateTime, $eDateTime); |
|
240
|
240
|
|
|
241
|
241
|
// Strip: No overlap && Passed: --$sTime--$eTime--$tp0--$tp1-- |
|
242
|
|
- $timePeriods = array_filter($timePeriods, function ($tp) use ($sTime, $eTime) { |
|
|
242
|
+ $timePeriods = array_filter($timePeriods, function($tp) use ($sTime, $eTime) { |
|
243
|
243
|
return $eTime <= $tp[0] && $sTime < $tp[0] ? false : true; |
|
244
|
244
|
}); |
|
245
|
245
|
|
|
246
|
246
|
// Strip: No overlap: --$tp0--$tp1--$sTime--$eTime-- |
|
247
|
|
- $timePeriods = array_filter($timePeriods, function ($tp) use ($sTime) { |
|
|
247
|
+ $timePeriods = array_filter($timePeriods, function($tp) use ($sTime) { |
|
248
|
248
|
return $tp[1] <= $sTime ? false : true; |
|
249
|
249
|
}); |
|
250
|
250
|
|
Please login to merge, or discard this patch.