diff options
Diffstat (limited to 'frontends/php/sysmaps.php')
| -rw-r--r-- | frontends/php/sysmaps.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/sysmaps.php b/frontends/php/sysmaps.php index ee455047..67f183a4 100644 --- a/frontends/php/sysmaps.php +++ b/frontends/php/sysmaps.php @@ -147,9 +147,9 @@ echo "<select class=\"biginput\" name=\"background\" size=1>"; $result=DBselect("select name from images where imagetype=2 order by name"); echo "<OPTION VALUE=''>No image..."; - for($i=0;$i<DBnum_rows($result);$i++) + while($row=DBfetch($result)) { - $name=DBget_field($result,$i,0); + $name=$row["name"]; if(isset($_REQUEST["sysmapid"]) && ($background==$name)) { echo "<OPTION VALUE='".$name."' SELECTED>".$name; |
