Commit fe3eb995 authored by pedrov's avatar pedrov
Browse files

hop

parent 4697508c
......@@ -79,7 +79,7 @@ if ($sql->lines)
" / " . $trajet->ville_arrivee->nom;
if ($trajet->has_pending_steps())
$str .= " <b>ETAPES EN ATTENTE DE VALIDATION</b>";
$str .= " <b>ETAPES EN ATTENTE DE VALIDATION !</b>";
$str .= "</a>";
$mytrj[] = $str;
......
......@@ -227,13 +227,18 @@ class trajet extends stdentity
*/
function has_pending_steps()
{
if (count($this->steps) <= 0)
if (count($this->etapes) <= 0)
$this->load_steps();
if (count($this->etapes) <= 0)
return false;
foreach ($this->steps as $step)
foreach ($this->etapes as &$step)
{
if ($step['etat'] == 0)
return true;
}
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