diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-25 10:27:05 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-11-25 10:27:05 +0000 |
commit | 8aee7a4bf11b6a36d74892f56d8937219cba0be0 (patch) | |
tree | 8cb0ef378685a801cc14e2228ca4bf7fe46238ff /frontends/php/sysmaps.php | |
parent | 4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63 (diff) | |
download | zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.tar.gz zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.tar.xz zabbix-8aee7a4bf11b6a36d74892f56d8937219cba0be0.zip |
Cleanup of PHP code.
git-svn-id: svn://svn.zabbix.com/trunk@2357 97f52cf1-0a1b-0410-bd0e-c28be96e8082
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; |