FIX #10406
This commit is contained in:
parent
0c327956c3
commit
794e7302cd
@ -107,13 +107,14 @@ class FormResource
|
|||||||
$out.= '<select id="'.$htmlname.'" class="flat minwidth200" name="'.$htmlname.'">'."\n";
|
$out.= '<select id="'.$htmlname.'" class="flat minwidth200" name="'.$htmlname.'">'."\n";
|
||||||
if ($showempty) $out.= '<option value="-1"> </option>'."\n";
|
if ($showempty) $out.= '<option value="-1"> </option>'."\n";
|
||||||
|
|
||||||
$num = count($resourcestat->lines);
|
$num = 0;
|
||||||
|
if (is_array($resourcestat->lines)) $num = count($resourcestat->lines);
|
||||||
|
|
||||||
//var_dump($resourcestat->lines);
|
//var_dump($resourcestat->lines);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num)
|
if ($num)
|
||||||
{
|
{
|
||||||
while ( $i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$resourceclass=ucfirst($resourcestat->lines[$i]->element);
|
$resourceclass=ucfirst($resourcestat->lines[$i]->element);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user