Commit 0e16b5d9 authored by Bate's avatar Bate

Correction champ ambigue

parent 49a68f84
......@@ -216,7 +216,6 @@ class planning2 extends stdentity
function get_max_users_for( $gap_id, $start, $end )
{
return 1;
$gap_id = intval($gap_id);
$start = mysql_escape_string($start);
$end = mysql_escape_string($end);
......@@ -253,6 +252,7 @@ class planning2 extends stdentity
$to_break = true;
else
{
$date_absence = null;
list( $date_absence ) = $sql->get_row();
if(is_null($date_absence))
$to_break = true;
......@@ -270,6 +270,7 @@ class planning2 extends stdentity
break;
else
{
$date_min = null;
list( $date_min ) = $sql->get_row();
if(is_null($date_min) && $to_break)
break;
......
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