From dcea1d6edb1de5434d1453303d2435296e03444f Mon Sep 17 00:00:00 2001 From: artem Date: Fri, 18 Apr 2008 13:05:46 +0000 Subject: - [DEV-137] minor fix (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5637 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/forms.inc.php | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'frontends/php/include/forms.inc.php') 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; } -- cgit