Commit a65d5fd2 authored by Bate's avatar Bate

Planning2

parent 1730e908
......@@ -303,6 +303,18 @@ class planning2 extends stdentity
( pl2_user_gap.end >= '".date("Y-m-d H:i:s",$start)."'
AND pl2_user_gap.end <= '".date("Y-m-d H:i:s",$end)."'
)
)
AND
(
(
pl2_gap.start <= (SELECT end FROM pl2_gap WHERE id_gap = '$gap_id')
AND pl2_gap.start >= (SELECT start FROM pl2_gap WHERE id_gap = '$gap_id')
)
OR
(
pl2_gap.end >= (SELECT start FROM pl2_gap WHERE id_gap = '$gap_id')
AND pl2_gap.end <= (SELECT end FROM pl2_gap WHERE id_gap = '$gap_id')
)
)");
if($sql->lines > 0)
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment