summaryrefslogtreecommitdiffstats
path: root/frontends/php/config.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-24 16:43:23 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-11-24 16:43:23 +0000
commit4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63 (patch)
treef2ad9a8bca15f6bef61a8156b88f7ea35ed5f707 /frontends/php/config.php
parent3cbe6adc1f59c83ccdf319d31e7c03cb70db6351 (diff)
downloadzabbix-4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63.tar.gz
zabbix-4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63.tar.xz
zabbix-4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63.zip
Misc cleanup.
git-svn-id: svn://svn.zabbix.com/trunk@2356 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/config.php')
-rw-r--r--frontends/php/config.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/frontends/php/config.php b/frontends/php/config.php
index 99ab67fe..2557d606 100644
--- a/frontends/php/config.php
+++ b/frontends/php/config.php
@@ -415,13 +415,14 @@
if(isset($_REQUEST["register"]) && ($_REQUEST["register"] == "change"))
{
$result=DBselect("select mediatypeid,type,description,smtp_server,smtp_helo,smtp_email,exec_path from media_type where mediatypeid=".$_REQUEST["mediatypeid"]);
- $mediatypeid=DBget_field($result,0,0);
- $type=@iif(isset($_REQUEST["type"]),$_REQUEST["type"],DBget_field($result,0,1));
- $description=DBget_field($result,0,2);
- $smtp_server=DBget_field($result,0,3);
- $smtp_helo=DBget_field($result,0,4);
- $smtp_email=DBget_field($result,0,5);
- $exec_path=DBget_field($result,0,6);
+ $row=DBfetch($result);
+ $mediatypeid=$row["mediatypeid"];
+ $type=@iif(isset($_REQUEST["type"]),$_REQUEST["type"],$row["type"]);
+ $description=$row["description"];
+ $smtp_server=$row["smtp_server"];
+ $smtp_helo=$row["smtp_helo"];
+ $smtp_email=$row["smtp_email"];
+ $exec_path=$row["exec_path"];
}
?>