ne pas importer de breakday les weekend (fixes #7)
This commit is contained in:
parent
3759996f19
commit
4ec5dceb14
@ -97,6 +97,7 @@ class BreakdayCommand extends Command
|
||||
if($response&&$response->code=="200") {
|
||||
while($start<=$end) {
|
||||
$havebreakday=false;
|
||||
if($start->format("w")!=0&&$start->format("w")!=6) {
|
||||
foreach($response->body->events as $event) {
|
||||
if($event->eventallday) {
|
||||
$manip=clone $start;
|
||||
@ -255,6 +256,7 @@ class BreakdayCommand extends Command
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Si la journée n'a pas de congès on supprime ceux qui peuvent existé non validé
|
||||
if(!$havebreakday) {
|
||||
|
Loading…
Reference in New Issue
Block a user