Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
212c625c
Commit
212c625c
authored
Jun 27, 2013
by
Bate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Planning2
parent
87d41df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/entities/planning2.inc.php
include/entities/planning2.inc.php
+4
-4
No files found.
include/entities/planning2.inc.php
View file @
212c625c
...
...
@@ -403,10 +403,10 @@ class planning2 extends stdentity
else
return
new
requete
(
$this
->
db
,
"SELECT id_gap, start, end, name_gap, max_users FROM pl2_gap
WHERE id_planning =
$this->id
AND end > '"
.
gmdate
(
"Y-m-d H:i:s"
,
$start
)
.
"'
AND start < '"
.
gmdate
(
"Y-m-d H:i:s"
,
$end
)
.
"'
ORDER BY start ASC"
);
WHERE id_planning =
$this->id
"
.
(
is_null
(
$start
)
?
""
:
(
"
AND end > '"
.
gmdate
(
"Y-m-d H:i:s"
,
$start
)
.
"'
"
))
.
(
is_null
(
$end
)
?
""
:
(
"
AND start < '"
.
gmdate
(
"Y-m-d H:i:s"
,
$end
)
.
"'
"
))
.
"
ORDER BY start ASC"
);
}
function
get_gaps_time
(
$start
,
$end
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment