Commit c727cb69 authored by Bate's avatar Bate

Planning2

parent c7492b2c
......@@ -333,6 +333,16 @@ class planning2 extends stdentity
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')
)
OR
(
pl2_gap.start <= (SELECT start FROM pl2_gap WHERE id_gap = '$gap_id')
AND pl2_gap.end >= (SELECT end FROM pl2_gap WHERE id_gap = '$gap_id')
)
OR
(
pl2_gap.start >= (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