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") {
|
if($response&&$response->code=="200") {
|
||||||
while($start<=$end) {
|
while($start<=$end) {
|
||||||
$havebreakday=false;
|
$havebreakday=false;
|
||||||
|
if($start->format("w")!=0&&$start->format("w")!=6) {
|
||||||
foreach($response->body->events as $event) {
|
foreach($response->body->events as $event) {
|
||||||
if($event->eventallday) {
|
if($event->eventallday) {
|
||||||
$manip=clone $start;
|
$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é
|
// Si la journée n'a pas de congès on supprime ceux qui peuvent existé non validé
|
||||||
if(!$havebreakday) {
|
if(!$havebreakday) {
|
||||||
|
Loading…
Reference in New Issue
Block a user