summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/html.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-07 13:14:00 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-07 13:14:00 +0000
commitd1f0507236793e1d4b28eb213b17432cef9bdd99 (patch)
treed6c07129b66ba6acb0cac47fab9a6bf5452e7b86 /frontends/php/include/html.inc.php
parent81c4d84a47e5d82758d45a83cd0b4b9cb35c7ea8 (diff)
downloadzabbix-d1f0507236793e1d4b28eb213b17432cef9bdd99.tar.gz
zabbix-d1f0507236793e1d4b28eb213b17432cef9bdd99.tar.xz
zabbix-d1f0507236793e1d4b28eb213b17432cef9bdd99.zip
- [DEV-137] improvements in permissions checks (Artem)
- [DEV-137] fixed issue "viewing items, hosts without group in latest data" (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5595 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/html.inc.php')
-rw-r--r--frontends/php/include/html.inc.php13
1 files changed, 5 insertions, 8 deletions
diff --git a/frontends/php/include/html.inc.php b/frontends/php/include/html.inc.php
index a3c7ff08..a84b2139 100644
--- a/frontends/php/include/html.inc.php
+++ b/frontends/php/include/html.inc.php
@@ -65,16 +65,12 @@
{
$result = "";
- if(is_array($var))
- {
+ if(is_array($var)){
foreach($var as $id => $par)
- $result .= prepare_url($par,
- isset($varname) ? $varname."[".$id."]": $id
- );
+ $result .= prepare_url($par,isset($varname) ? $varname."[".$id."]": $id);
}
- else
- {
- $result = "&".$varname."=".urlencode($var);
+ else{
+ $result = '&'.$varname.'='.urlencode($var);
}
return $result;
}
@@ -100,6 +96,7 @@
if(isset($var)){
$result = prepare_url($var,$name);
}
+
return $result;
}