This commit is contained in:
Laurent Destailleur 2019-02-15 16:39:21 +01:00
parent 0c327956c3
commit 794e7302cd

View File

@ -107,13 +107,14 @@ class FormResource
$out.= '<select id="'.$htmlname.'" class="flat minwidth200" name="'.$htmlname.'">'."\n";
if ($showempty) $out.= '<option value="-1">&nbsp;</option>'."\n";
$num = count($resourcestat->lines);
$num = 0;
if (is_array($resourcestat->lines)) $num = count($resourcestat->lines);
//var_dump($resourcestat->lines);
$i = 0;
if ($num)
{
while ( $i < $num)
while ($i < $num)
{
$resourceclass=ucfirst($resourcestat->lines[$i]->element);