diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-18 13:05:46 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-04-18 13:05:46 +0000 |
| commit | dcea1d6edb1de5434d1453303d2435296e03444f (patch) | |
| tree | 1f099b18849c0f2bd935690ff1df21491ca2b512 /frontends/php/include/forms.inc.php | |
| parent | b4726586d8164b091529c2105b80e647139c13c8 (diff) | |
| download | zabbix-dcea1d6edb1de5434d1453303d2435296e03444f.tar.gz zabbix-dcea1d6edb1de5434d1453303d2435296e03444f.tar.xz zabbix-dcea1d6edb1de5434d1453303d2435296e03444f.zip | |
- [DEV-137] minor fix (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5637 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
| -rw-r--r-- | frontends/php/include/forms.inc.php | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php index c62fa5a6..d63f2aed 100644 --- a/frontends/php/include/forms.inc.php +++ b/frontends/php/include/forms.inc.php @@ -4715,37 +4715,30 @@ include_once 'include/discovery.inc.php'; //--- end mod --- - function insert_application_form() - { - global $_REQUEST; - + function insert_application_form(){ $frm_title = "New Application"; - if(isset($_REQUEST["applicationid"])) - { + if(isset($_REQUEST["applicationid"])){ $result=DBselect("SELECT * FROM applications WHERE applicationid=".$_REQUEST["applicationid"]); $row=DBfetch($result); $frm_title = "Application: \"".$row["name"]."\""; } - if(isset($_REQUEST["applicationid"]) && !isset($_REQUEST["form_refresh"])) - { + + if(isset($_REQUEST["applicationid"]) && !isset($_REQUEST["form_refresh"])){ $appname = $row["name"]; $apphostid = $row["hostid"]; } - else - { + else{ $appname = get_request("appname",""); $apphostid = get_request("apphostid",get_request("hostid",0)); } $db_host = get_host_by_hostid($apphostid,1 /* no error message */); - if($db_host) - { + if($db_host){ $apphost = $db_host["host"]; } - else - { - $apphost = ""; + else{ + $apphost = ''; $apphostid = 0; } |
