diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-22 14:16:34 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-22 14:16:34 +0000 |
| commit | 0f41b690e0f3f2db1b53b874ae42ec626b7d7096 (patch) | |
| tree | 85024ea09eb177e592e39b35c1b62f2895c790b1 /frontends/php/hosts.php | |
| parent | f7c3e0f85effdc7624e46e8a57790b3616aad7e6 (diff) | |
| download | zabbix-0f41b690e0f3f2db1b53b874ae42ec626b7d7096.tar.gz zabbix-0f41b690e0f3f2db1b53b874ae42ec626b7d7096.tar.xz zabbix-0f41b690e0f3f2db1b53b874ae42ec626b7d7096.zip | |
- [DEV-137] minor fixes (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5645 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php index 5339a530..03d29986 100644 --- a/frontends/php/hosts.php +++ b/frontends/php/hosts.php @@ -270,15 +270,16 @@ include_once "include/page_header.php"; $hostid = add_host( $_REQUEST["host"],$_REQUEST["port"],$_REQUEST["status"],$useip,$_REQUEST["dns"], $_REQUEST["ip"],$_REQUEST["proxy_hostid"],$templates,$_REQUEST["newgroup"],$groups); - + $result = DBend()?$hostid:false; + $msg_ok = S_HOST_ADDED; $msg_fail = S_CANNOT_ADD_HOST; $audit_action = AUDIT_ACTION_ADD; - - $result = DBend()?$hostid:false; } if($result){ + update_profile("HOST_PORT",$_REQUEST['port']); + DBstart(); delete_host_profile($hostid); |
