summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/cform.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 14:23:12 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-12 14:23:12 +0000
commit4182bc6afb20b00fa27a54c67056bb98a58a49bb (patch)
tree5cab17d23e387cc3b6e8c92e4c928ac5e1111b76 /frontends/php/include/classes/cform.inc.php
parent6a6ac0772b8215bffc5fe8b02fc1033dbf273f41 (diff)
downloadzabbix-4182bc6afb20b00fa27a54c67056bb98a58a49bb.tar.gz
zabbix-4182bc6afb20b00fa27a54c67056bb98a58a49bb.tar.xz
zabbix-4182bc6afb20b00fa27a54c67056bb98a58a49bb.zip
- speed improvement for Overview screens (Eugene)
- developed 'net.if.total[*]' parameter (Eugene) - fixed new map link adding (Eugene) - fixed host group adding (Eugene) - fixed map displaying (Eugene) - fixed 'No permissions' for 'Latest data','Triggers','Alarms' screens (Eugene) - fixed permision deletion (Eugene) - fixed 'get_map_by_sysmapid' function calls(Eugene) - improved php code execution speed (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@2825 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/cform.inc.php')
-rw-r--r--frontends/php/include/classes/cform.inc.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/frontends/php/include/classes/cform.inc.php b/frontends/php/include/classes/cform.inc.php
index 2d2e8103..e83679dd 100644
--- a/frontends/php/include/classes/cform.inc.php
+++ b/frontends/php/include/classes/cform.inc.php
@@ -31,11 +31,7 @@
}
function SetMethod($value='post')
{
- if(!is_string($value))
- {
- return $this->error("Incorrect value for SetMethod [$value]");
- }
- return $this->AddOption("method",$value);
+ return $this->options['method'] = $value;
}
function SetAction($value=NULL)
{
@@ -43,17 +39,13 @@
if(is_null($value))
{
- if(isset($page["file"]))
+ if(isset($page['file']))
{
- return $this->AddOption("action",$page["file"]);
+ return $this->options['action'] = $page['file'];
}
return 1;
}
- elseif(!is_string($value))
- {
- return $this->error("Incorrect value for SetAction [$value]");
- }
- return $this->AddOption("action",$value);
+ return $this->options['action'] = $value;
}
function SetEnctype($value=NULL)
{