| @@ 1689-1694 (lines=6) @@ | ||
| 1686 | $accessBefore = null; |
|
| 1687 | $accessAfter = null; |
|
| 1688 | ||
| 1689 | if (empty($sessionInfo['nb_days_access_before_beginning']) || |
|
| 1690 | (!empty($sessionInfo['nb_days_access_before_beginning']) && |
|
| 1691 | $sessionInfo['nb_days_access_before_beginning'] < $this->daysCoachAccessBeforeBeginning) |
|
| 1692 | ) { |
|
| 1693 | $accessBefore = $coachBefore; |
|
| 1694 | } |
|
| 1695 | ||
| 1696 | $accessAfter = null; |
|
| 1697 | if (empty($sessionInfo['nb_days_access_after_end']) || |
|
| @@ 4568-4573 (lines=6) @@ | ||
| 4565 | $params['show_description'] = isset($sessionInfo['show_description']) ? $sessionInfo['show_description'] : intval($showDescription); |
|
| 4566 | ||
| 4567 | if (!empty($daysCoachAccessBeforeBeginning) && !empty($daysCoachAccessAfterBeginning)) { |
|
| 4568 | if (empty($sessionInfo['nb_days_access_before_beginning']) || |
|
| 4569 | (!empty($sessionInfo['nb_days_access_before_beginning']) && |
|
| 4570 | $sessionInfo['nb_days_access_before_beginning'] < $daysCoachAccessBeforeBeginning) |
|
| 4571 | ) { |
|
| 4572 | $params['coach_access_start_date'] = $coachBefore; |
|
| 4573 | } |
|
| 4574 | ||
| 4575 | if (empty($sessionInfo['nb_days_access_after_end']) || |
|
| 4576 | (!empty($sessionInfo['nb_days_access_after_end']) && |
|