Commit 4db9fbfd authored by Bate's avatar Bate

Correction affichage planning inexistant

parent 9acd339b
......@@ -441,8 +441,8 @@ class planning2 extends stdentity
return new requete($this->db,
"SELECT id_gap, start, end, name_gap, max_users FROM pl2_gap
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)."' ")).
((empty($start)||is_null($start))?"":("AND end > '".gmdate("Y-m-d H:i:s",$start)."' ")).
((empty($end)||is_null($end))?"":("AND start < '".gmdate("Y-m-d H:i:s",$end)."' ")).
"ORDER BY start ASC");
}
......
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