|
|
@@ -426,9 +426,8 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
|
|
|
if (array_key_exists('dateStart', $historical) && !array_key_exists('dateEnd', $historical)) {
|
|
|
unset($historical['dateStart']);
|
|
|
}
|
|
|
-
|
|
|
// Une entrée dateEnd mais pas de dateStart, on retire dateEnd
|
|
|
- if (!array_key_exists('dateStart', $historical) && array_key_exists('dateEnd', $historical)) {
|
|
|
+ else if (!array_key_exists('dateStart', $historical) && array_key_exists('dateEnd', $historical)) {
|
|
|
unset($historical['dateEnd']);
|
|
|
}
|
|
|
|