Skip to content
Snippets Groups Projects
Commit 3eceded8 authored by Henri Queneau's avatar Henri Queneau
Browse files

FIX #2382 modify the get_values_in_array, add a boucle for and a implode for keep all diese

parent 94fc4ceb
No related branches found
No related tags found
No related merge requests found
......@@ -47,9 +47,15 @@ function get_values_in_array($val)
for($i=0; $i<count($tab);$i++)
{
$tmp = explode('#', $tab[$i]);
$val_tmp=array();
for($idiese=1;$idiese<count($tmp);$idiese++){
$val_tmp[]=$tmp[$idiese];
}
$valeurDiese = implode("#",$val_tmp);
if(isset($tmp[1]))
{
array_push($values, array('ID' => $tmp[0], 'VALUE' => trim($tmp[1])));
array_push($values, array('ID' => $tmp[0], 'VALUE' => $valeurDiese));
}
}
return $values;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment